1.CSS常用属性
1.1关于背景
width: 500px;
height: 400px;
background-color: coral;
background-image: url(img/放大镜.png);
background-repeat:repeat-x;
1.2关于文本
分别为颜色,对齐方式,修饰及首行缩进
#div2{
color: aqua;
text-align: left;
text-decoration: line-through overline underline;
text-indent: 2em;
}
a{
text-decoration: none;
}
1.3 字体
1.4 对齐方式
1.5display
显示block 隐藏none
1.6浮动
2 盒子模型
边框 内边距 外边距
2.2 padding 内边距
3.下拉菜单:https://www.runoob.com/css/css-dropdowns.html
导航栏:https://www.runoob.com/css/css-navbar.html
网页布局设置:https://www.runoob.com/css/css-website-layout.html