.wrap {
color : blue;
width : 600px;
height : 500px;
border:groove;
border-radius: 15px;
.header {
border:groove;
width : 90%;
a {/*伪类*/
color: red;
font-size: 15px;
text-decoration: none;
float: right;
&:hover {
color: blue;
text-decoration: underline;
}
}
}
.content {
border:groove;
height : 300px;
width : 90%;
.left {
border:groove;
float : left;
width : 40%;
}
.right {
border:groove;
float : left;
width : 40%;
}
}
}
转载于:https://www.cnblogs.com/u1107562/p/6513536.html
本文详细介绍了一种使用CSS实现网页布局的方法,包括颜色设置、边框样式、浮动元素等特性,并展示了如何通过:hover伪类增强用户体验。
942

被折叠的 条评论
为什么被折叠?



