当前位置:编程学习 > html/css >>

请编写CSS使得三个“Student”标记中的文本内容分别在块区域中显示

针对下列XML文件,请编写CSS使得三个“Student”标记中的文本内容分别在块区域中显示,要求三个块区域的边框互不相同。 Student1.xml: <?xml version="1.0" encoding="utf-8"?> <Students> <Student ID="1"> 张三 <性别>男</性别> <年龄>21</年龄> </Student> <Student ID="2"> 李四 <性别>男</性别> <年龄>22</年龄> </Student> <Student ID="3"> 王五 <性别>女</性别> <年龄>20</年龄> </Student> </Students>
追问:能不能给我发个完整的,谢谢了
答案:Student1.css:
-------------------------------------------------------------------------------------------------
Student {display:block; width:30%; margin-top: 10px; text-align:center;}
Student#1 {border: solid yellow;}
Student#2 {border: solid red;}
Student#3 {border: solid blue;}

上一个:麻烦看下这段CSS代码怎么改.
下一个:CSS问题(解释一下)

CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,