一、详细页面的居中、距上距下的距离(css代码):
#detail{
margin: auto;
width: 1000px;
padding-top: 40px;
padding-bottom: 150px;
}
二、小图片鼠标滑过时的圆角、边框、加粗
ul li img{
height: 80px;
width: 80px;
margin: 10px 15px;
float: left;
border-radius: 10px;
}
#img1 img:hover{
border: 2px solid red;
border-radius: 10px;
}
三、设置块状标签:(块状属性、边框线、宽高)
#height div{
display: inline-block;
border: 1px solid black;
width: 40px;
line-height: 30px;
text-align: center;
margin-top: 10px;
margin-right: 20px;
}
四、知识点:
1、详情页面用到的css属性
(1)border-radius:边框圆角半径;
(2)text-decoration:line-through;文本划线(a标签去下划线,也是这个属性none);
2、table标签
(1)包含字标签:caption,tr,td,th
(2)常用属性:border-spacing,colspan,rowspan
(3)作用:布局