-
套用看看。滿意嗎?
[html]<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html dir="ltr" lang="zh-tw">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>所有裝備一覽</title>
<link rel="stylesheet" type="text/css" href="../css.css">
</head>
<body>
<xml id="data" src="all.xml"></xml>
<table datasrc="#data" border="0" cellpadding="1" align="center">
<thead bgcolor="#00FFFF">
<th>No.</th>
<th>名稱</th>
<th>Class</th>
<th>HP</th>
<th>MP</th>
<th>Time</th>
<th>HP治</th>
<th>MP治</th>
<th>視野</th>
<th>移動</th>
<th>命中</th>
<th>威力</th>
<th>射程</th>
<th>迴避</th>
<th>裝甲</th>
<th>障壁</th>
<th>身耐</th>
<th>精耐</th>
<th>追加效果</th>
</thead>
<tr bgcolor="#FFD6FF">
<td><span datafld="No"></span></td>
<td><span datafld="Name"></span></td>
<td><span datafld="Class"></span></td>
<td><span datafld="HP"></span></td>
<td><span datafld="MP"></span></td>
<td><span datafld="Time"></span></td>
<td><span datafld="HPs"></span></td>
<td><span datafld="MPs"></span></td>
<td><span datafld="Sight"></span></td>
<td><span datafld="Move"></span></td>
<td><span datafld="Accuracy"></span></td>
<td><span datafld="Power"></span></td>
<td><span datafld="Range"></span></td>
<td><span datafld="Avoid"></span></td>
<td><span datafld="Armor"></span></td>
<td><span datafld="Shelter"></span></td>
<td><span datafld="Body"></span></td>
<td><span datafld="Soul"></span></td>
<td><span datafld="Plus"></span></td>
</tr>
</table>
</body>
</html>[/html]
-
我照琥珀的code再上傳一次
看起來應該是把表格加入背景色以凸顯虛框吧?
以前之所以沒用背景是因為在IE裡面仍然能看到虛框
沒想到造成非IE使用者的不便
(我並不用IE,但仍是用IE base的瀏覽器)
請問門神這樣有比較正常了吧?
-
^^
琥珀的方法也不錯 !!
現在看的比較正常
我也用Firefox , 因為這樣才能看自己寫的網頁正不正常
-
其實我一直有個問題
在我的Firefox裡面看這個網頁是完全看不到東西的
像這樣:
[img]http://www.pczone.com.tw/upload/eqidt.gif[/img]
以下皆為空白
是我的問題嗎?
-
-
我試著在< tr>外層加入< tbody>但是無效
請問琥珀 正確的用法是?
p.s 你的"tbody"在留言是怎麼輸入的?
我的都會被誤判為html
-
[QUOTE=Zuchen]我試著在< tr>外層加入< tbody>但是無效
請問琥珀 正確的用法是?
p.s 你的"tbody"在留言是怎麼輸入的?
我的都會被誤判為html[/QUOTE]
&lt;tbody&gt; (請以半形輸入)
-→ <tbody>
&lt; 與 &gt; 和 &nbsp;
這種 &...; 都是屬於HTML的特殊代碼。
-
阿也對
我都忘記還有這種寫法了
平常用到的只有&nbsp;而已
-
若全頁純是表格,不建議用「織夢」(Dreamweaver)之類的專業網頁編輯軟體,更不建議自己動手編輯超文字,建議使用「微軟辦公室」(Microsoft Office)的「Excel」或「開放辦公室」(OpenOffice.org)的「工作表文件」。
用這主要是易於管理,把檔案格式存成「超文字文件」即可。不會用的話……上網找些教學吧,花幾分鐘快速看看就可以了。
-
我把all.xml稍微改寫了一下
因為我發現到<xml id="data" src="all.xml">的外部連結xml方式對Firefox不管用
所以all.htm已經被我刪掉了
今天試著用xsl來轉換xml
應該能符合w3c標準
[URL=http://w3.nctu.edu.tw/~u9344019/equip/all.xsl]原始xsl[/URL]
[URL=http://w3.nctu.edu.tw/~u9344019/equip/all.xml]瀏覽結果[/URL]