Web第九周课堂笔记
文字样式属性
浏览器默认字的大小16
首行缩进用em单位
margin:0 auto;容器相对于浏览器居中
text-align: center;容器中的内容相对于容器居中
text-indent:2em;首行缩进
斜体:font-style:italic;
链接外部字体:
@font-face{
font-family:'汉呈王天喜江南手书';
src:url(css/汉呈王天喜江南手书.TTF);
}
#font{
font-family: '汉呈王天喜江南手书';
}
马彦君
white-space: nowrap;不折行
overflow:hidden;超出部分隐藏
text-overflow: ellipsis;超出的部分用省略号表示
去掉原点修饰符: list-style-type: none;

浙公网安备 33010602011771号