一,CSS位置
1,行内式css
<div class =“fr”style =“color:red;”> aa </ div>
2,内嵌式样式
<style>
.one {
width:200px;
}
</ style>
3,外链式
<link rel =“stylesheet”href =“css / base.css”/>
二,Font字体综合写
字体:字体加粗字号/行高字体;
必须有字号和字体。
字体重量:大胆的; 700
S del删除线
我倾向于
U ins下划线
字体加粗font-weight:700;
让字体不粗粗:font-weight:normal;
字体倾斜:font-style:italic; 不用
字体不倾斜:font-style:normal;
不下划线不删除线:text-decoration:none;
定位:position:static; 静态定位约等于标准流
浮动的不浮动:float:none; 没有人向右走
定位的不定位:position:static; 绝对相对固定
三,选择器的优先级
标签(1)< 类(10) < id(100)< 行内(1000)
网页稳定:
宽度和高度最稳定
其次填充
最后才考虑保证金