<!--div设置class块属性需要用<Style>进行声明-->
<style>
#father{
border: 1px solid red; /*设置边框*/
width: 1500px;
margin: auto;
text-align: center; /*设置框内的内容为剧中*/
}
</style>
<!--在div块中设置无序的列表时,可以指定此列表的相关参数-->
ul li{
display: inline; /*display浮动的定义 定义这个列表时内嵌式无换行符插入到整个<div中>*/
color: white;
}
<!--在div块中可以用style="相关参数"进行块内的修饰如果内部元素第二次修饰将会覆盖第一次修饰,就近原则-->
<div style="border: 1px solid red; height: 90px; color: blue; text-align: center;" >
<ul>
<li><a href="#">关于我们</a></li>
<li><a href="#">联系我们</a></li>
<li><a href="#">服务声明</a></li>
</ul>
<p style="text-align: center; color: black;">Copyright © 2005-2016 传智商城 版权所有</p>
</div>
Last modification:June 26th, 2018 at 02:20 pm
© The copyright belongs to the author
Comment here is closed