以文本方式查看主题

-  中文XML论坛 - 专业的XML技术讨论区  (http://bbs.xml.org.cn/index.asp)
--  『 XML基础 』  (http://bbs.xml.org.cn/list.asp?boardid=1)
----  CSS2中display: table系列样式在IE6中不能显示?  (http://bbs.xml.org.cn/dispbbs.asp?boardid=1&rootid=&id=5322)


--  作者:menghaizi
--  发布时间:2/1/2004 11:31:00 AM

--  CSS2中display: table系列样式在IE6中不能显示?
以下是用CSS2中的display: table\table-caption\table-row\table-cell相关属性来给XML文件格式化的,我在IE6中不能按预期显示,但opera浏览器却正常,请问有错吗?也是从XML实用大全中复制下来的,只是简化了的。
源XML文件:
<?xml version="1.0" encoding="gb2312"?>
<?xml-stylesheet type="text/css" href="team.css"?>
<SEASON>
<YEAR>1998</YEAR>
<LEAGUE>
<LEAGUE_NAME>National League</LEAGUE_NAME>
<DIVISION>
<DIVISION_NAME>东部</DIVISION_NAME>
<TEAM>
<TEAM_CITY>广州</TEAM_CITY>
<PLAYER>
<SURNAME>player1</SURNAME>
</PLAYER>
<PLAYER>
<SURNAME>player2</SURNAME>
</PLAYER>
</TEAM>
<TEAM>
<TEAM_CITY>绵阳</TEAM_CITY>
<PLAYER>
<SURNAME>player3</SURNAME>
</PLAYER>
</TEAM>
</DIVISION>
<DIVISION>
<DIVISION_NAME>中部</DIVISION_NAME>
<TEAM>
<TEAM_CITY>江油</TEAM_CITY>
<PLAYER>
<SURNAME>player4</SURNAME>
</PLAYER>
</TEAM>
<TEAM>
<TEAM_CITY>成都</TEAM_CITY>
<PLAYER>
<SURNAME>player5</SURNAME>
</PLAYER>
</TEAM>
</DIVISION>
</LEAGUE>
</SEASON>
CSS部分:
SEASON {font-size: 14pt; background-color: white;
color: black; display: block}
year {display: block; font-size: 32pt; font-weight: bold;
text-align: left}
LEAGUE_NAME {display: block; text-align: center; font-size:
28pt; font-weight: bold}
DIVISION_NAME {display: block; text-align: center; font-size:
24pt; font-weight: bold}
TEAM {display: table}
TEAM_CITY {display: table-caption}
PLAYER {display: table-row}
SURNAME {display: table-cell}
W 3 C h i n a ( since 2003 ) 旗 下 站 点
苏ICP备05006046号《全国人大常委会关于维护互联网安全的决定》《计算机信息网络国际联网安全保护管理办法》
31.250ms