首页 > 其他 > 详细

0714样式表

时间:2017-07-14 15:36:05      阅读:179      评论:0      收藏:0      [点我收藏+]


<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title></title>
<style>
/*命名方式:单词-单词-数字*/
/*标签选择器*/
span{
font-family: "微软雅黑";
font-size: 50px;
color: white;
}
/*id选择器*/
#t1{
color: red;
}
#t2{
color: green;
}
/*class选择器*/
.l1{
color: blue;
}
/*自定义属性选择器*/
[a=‘b‘]{
color: red;
}
/*并列选择器*/
#t1,#t2{
font-style: italic;
}
/*子代选择器*/
#u1 li{
font-size: 20px;
}
</style>
<link rel="stylesheet" type="text/css" href="css/new_file.css"/>
</head>
<body>
<span style="background-color: red;">
wwqdwd
</span>
<br />
<span>
123456789
</span>
<style>

</style>
<table>
<tr>
<td id="t1">1</td>
<td id="t2">B</td>
</tr>
</table>
<ul id="u1">
<li class="l1">1</li>
<li class="l1">2</li>
<li class="l1">3</li>
<li class="l1">4</li>
</ul>
<ul>
<li a="b">1</li>
<li>2</li>
<li>3</li>
<li>4</li>
</ul>
</body>
</html>

 

wwqdwd
123456789

1 B
  • 1
  • 2
  • 3
  • 4
  • 1
  • 2
  • 3
  • 4

0714样式表

原文:http://www.cnblogs.com/sglq/p/7170355.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!