虚拟主机,域名
IT资源网
热门关键字:  php  iebook  网页  pro e  powerpoint
当前位置 : 主页>网页制作>Html>

网页标准制作:网页之CSS混合布局应用

作者:未知 时间:05-19 09:34:43

一、Margin(框距)padding(边框距)

margin属性设置顺序:上右下左

padding属性设置顺序:上右下左

margin:25px 0 25px 0;

简写:margin:25px 0;


二、Display显示属性设置

(1)、Display属性none (隐藏)

.alt {display:none;}

<span class=”alt”>Content List Part</span>

(2)、Display属性block (块/区域)

Img {display:block;}

<img href=”1.gif”></img>

块级元素:存在自身的“盒”中,后面跟随一个默认的回车

内联元素:是流的一部分,后面不跟随回车

(3)、Display属性inline

区别block元素,使用inline状态时,显示方式按照内联元素显示


三、 动态链接属性设置:

a:link {

font-weight : bold;

text-decoration : none;

color: #c30;

background: transparent;

}

a:visited {

font-weight : bold;

text-decoration : none;

color: #c30;

background: transparent;

}

a:hover {

font-weight : bold;

text-decoration : underline;

color: #f60;

background: transparent;

}

a:active {

font-weight : bold;

text-decoration : none;

color: #f90;

background: transparent;

}

(1)文字修饰属性(text-decoration)

Text-decoration:underline overline none;

Underline:链接时有下划线

Overline:连接时有上划线

None:连接时无下划线

(2)动态连接属性顺序

(LVHA)- LoVe-HA!

(3)IE/WINDOWS的伪装欺骗性

应避免使用a:active属性:出现bug 连接会出现冻结现象


相关文章
本站推荐