分享

彭健的博客。

 昵称14255633 2013-10-16

div+css标签大全

时间:2012-10-21栏目:Div+css作者:彭健

Html与css文件链接<link href=”style/css.css” rel=”stylesheet” type=”text/css” />

去除所有默认值:*{ margin:0; padding:0;}

宽度:width:100%;

高度:height:160px;

层居中: margin:0 auto;

背景颜色:background-color:

背景图片:background-image:

背景图片重复性:background-repeat:

背景图片位置:background-position:

背景图片附着:background-attachment:

背景简写:background:

字体大小:font-size:

字体颜色:color:

未被访问的链接:a:link {}

已被访问过的链接:a:visited{}

鼠标悬浮在上的链接:a:hover{}

鼠标点中激活链接:a:active{}

字体粗度:font-weight:600

文字不加粗:font-weight:lighter;

文本对齐:text-align:

首行缩进:text-indent:

行高:line-height:

字符间距:letter-spacing:

文本对齐:text-align:

字体大小:font-size:

首行缩进:text-indent

字体颜色:color

间距:margin

填充:padding

宽度:width

高度:height

字体粗度:font-weight

边线:border:

上边线:border-top:

下边线:border-bottom:

左边线:border-left:

右边线:border-right:

边距:margin:1px 2px 3px 4px;四个数字分别是上、右、下、左。

左边距:margin-left:6px;

右边据:margin-right:6px;

上边据:margin-top:6px;

下边据:margin-bottom: 6px;

浮动:float:left;

双倍间距:display:inline;

超链接去下划线:text-decoration:none:

超链接效果:a:hover{ font-size:20px;}

去除列表的圆点:list-style:none;

上下居中:vertical-align:middle;

超链接不传递权重:rel=”nofollow”

IE6的li不设置宽度不能自动换行:white-space:nowrap;

浮动清除标签: overflow:hidden; zoom:1;

    本站是提供个人知识管理的网络存储空间,所有内容均由用户发布,不代表本站观点。请注意甄别内容中的联系方式、诱导购买等信息,谨防诈骗。如发现有害或侵权内容,请点击一键举报。
    转藏 分享 献花(0

    0条评论

    发表

    请遵守用户 评论公约

    类似文章 更多