CSS设计彻底研究(复习)

2019-08-19  本文已影响0人  ft207741

目录

第一章 HTML和CSS核心基础

第二章 选择器(暂时不学了)

第三章 深入理解盒子模型

第四章 盒子的浮动和定位

第五章 文字与图像


第一章 HTML和CSS核心基础

   - 链接式导入会在装载页面主体之前装载CSS文件。
/*  外部导入链接式 */
<link href="./main_test.css" rel="stylesheet" type="text/css"/>

第三章 深入理解盒子模型

div {border:1px solid black;}
#block1{
    position:absolute;
    left:30px;
    top:30px;
}

第五章 文字与图像

font-family:"Times New Roman",Georgia,Serif;
font-size:12px;
line-height:18px;
line-height:1.5;
    font:italic bold 12px/20px arial,sans-serif; 
    font:16px/1.5 Arial;  /* 至少设置两个属性 *
h1 {text-transform:uppercase}  /* 全部大写 */
h2 {text-transform:capitalize} /* 首字母大写 */
p {text-transform:lowercase}  /* 全部小写 */
h1 {text-decoration:overline}
h2 {text-decoration:line-through}
h3 {text-decoration:underline}
h4 {text-decoration:blink}   /* 没有效果 */
text-indent:2em;


上一篇下一篇

猜你喜欢

热点阅读