在<title><title/>下写style可以改body中的所有同名标签属性,
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title></title>
<style>
p{
border: 1px solid blue;
width: 100px;
height: 50px;
/*line-height: 50px;
font-size: 10px;
font-family: 华文彩云;*/
font: 12px/50px 华文彩云;
}
</style>
</head>
<body>
<p>hello</p>
<div style="border-bottom: 1px solid blueviolet;">aa</div>
<span>a</span>
<span>a</span>
<br /><br />
<div id="d" style="border: 1px;">
<span class="s">B</span>
<span class="s"></span>
<!--<div style="clear: left;"></div>-->
</div>
</body>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title></title>
<style>
ul{
/*list-style-type:decimal
list-style-img:url(img)
list-style-position:inside*/
/*list-style:decimal url(img) inside*/
list-style: none;
}
li{
border-bottom: 1px solid #e1e3e5;
height: 49px;
font: 16px/49px #e1e3e5 ,"Microsoft Yahei";
}
#last{
border:none;
color="#e1e3e5"
}
a{
text-decoration: none;
color: #e1e3e5;
}
#first{
color: blue;
}
</style>
</head>
<body>
<ul>
<li><a id="first" href="http://www.baidu.com">首页</a></li>
<li><a href="http://www.baidu.com">公司概况</a></li>
<li><a href="http://www.baidu.com">股票咨询</a></li>
<li><a href="http://www.baidu.com">新浪动态</a></li>
<li><a href="http://www.baidu.com">财务信息</a></li>
<li><a href="http://www.baidu.com">投资者日</a></li>
<li id="last"><a href="http://www.baidu.com">联系我们</a></li>
</ul>
</body>
</html>
学习感悟:学习的内容越来越复杂啦,感觉有点难理解特别是标签属性那里。