XML与CSS样式结合
网站建设 2021-07-03 09:08www.dzhlxh.cn网站建设
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 }