站长资源网页制作
XML与CSS样式结合
简介student.xmlZhangSan 女
<student>
<name>ZhangSan</name>
<sex>女</sex>
</student>
student.xml
<?xml version="1.0" encoding="GB2312"?>
<?xml-stylesheet type="text/css" href="student.css"?><student>
<name>ZhangSan</name>
<sex>女</sex>
</student>
student.css
student{ display:block; }
name{ display:block; font-size:110%; color:red }
sex{ display:block; text-indent:2em }