| 订阅 | 在线投稿
分享
 
 
 

CSS公用属性

来源:互联网  宽屏版  评论
2008-08-09 06:57:33

这是我们开发团队默认的样式表 希望大家补充

/*

Author: cuikai msty@tom.com

*/

/* reset */

body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,form,fieldset,input,p,blockquote,th,td{margin:0;padding:0}

table{border-collapse:collapse;border-spacing:0}

fieldset,img{border:0}

address,caption,cite,code,dfn,em,strong,th,var{font-style:normal;font-weight:normal}

ol,ul {list-style:none}

caption,th {text-align:left}

h1,h2,h3,h4,h5,h6{font-size:100%}

q:before,q:after{content:''}

/* font */

.f12{font-size:12px!important}

.f14{font-size:14px!important}

.bold{font-weight:bold}

.normal{font-weight:normal}

.font_none{font-size:0px; line-height:0px}

/* color */

.red , .red a{color:#f00!important}

.gray, .gray a {color:#666!important}

.green , .green a {color:#76c56a!important}

.orange, .orange a {color:#fd864a!important}

/*layout*/

.block{display:block}

.hidden{display:none}

.bg_none{background:none!important}

.float_left{float:left}

.float_right{float:right}

.clear{clear:both!important}

.margin_10{margin:10px}

.margin_20{margin:20px}

.margin_top{margin-top:10px}

.margin_right{margin-right:10px}

.margin_bottom{margin-bottom:10px}

.margin_left{margin-left:10px}

.padding_10{padding:10px}

.padding_20{padding:20px}

.padding_top{padding-top:10px}

.padding_right{padding-right:10px}

.padding_bottom{padding-bottom:10px}

.padding_left{padding-left:10px}

.nopadding{padding:0!important}

/*

Author: guoxiaoling

*/

/*

Author: shiwenliang

*/* { margin:0; padding:0;}

html { text-align:center; background:#fff;}

body { width:960px; position:relative; margin:0 auto; padding:10px 0; text-align:left; font:12px/1.6em Tahoma,Verdana, Lucida, Arial, Helvetica, 宋体,sans-serif; color:#666;}

h1, h2, h3, h4, h5, h6 { font-size:100%;}

address, caption, cite, code, dfn, em, strong, th, var,b,i { font-style:normal; font-weight:normal;}

table { border-collapse:collapse; border-spacing:0; empty-cells:show;}

ol, ul { list-style:none outside;}

:focus { outline :0;}

fieldset, img { border:0;}

caption, th { text-align :left;}

q:before, q:after { content:'';}

a { text-decoration:none; }

a:hover { text-decoration:underline;}

input,select,textarea { font-size:12px; padding:2px;}

.clearfix { overflow:hidden; zoom:1;}

 
这是我们开发团队默认的样式表 希望大家补充 /* Author: cuikai [url=mailto:msty@tom.com]msty@tom.com[/url] */ /* reset */ body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,form,fieldset,input,p,blockquote,th,td{margin:0;padding:0} table{border-collapse:collapse;border-spacing:0} fieldset,img{border:0} address,caption,cite,code,dfn,em,strong,th,var{font-style:normal;font-weight:normal} ol,ul {list-style:none} caption,th {text-align:left} h1,h2,h3,h4,h5,h6{font-size:100%} q:before,q:after{content:''} /* font */ .f12{font-size:12px!important} .f14{font-size:14px!important} .bold{font-weight:bold} .normal{font-weight:normal} .font_none{font-size:0px; line-height:0px} /* color */ .red , .red a{color:#f00!important} .gray, .gray a {color:#666!important} .green , .green a {color:#76c56a!important} .orange, .orange a {color:#fd864a!important} /*layout*/ .block{display:block} .hidden{display:none} .bg_none{background:none!important} .float_left{float:left} .float_right{float:right} .clear{clear:both!important} .margin_10{margin:10px} .margin_20{margin:20px} .margin_top{margin-top:10px} .margin_right{margin-right:10px} .margin_bottom{margin-bottom:10px} .margin_left{margin-left:10px} .padding_10{padding:10px} .padding_20{padding:20px} .padding_top{padding-top:10px} .padding_right{padding-right:10px} .padding_bottom{padding-bottom:10px} .padding_left{padding-left:10px} .nopadding{padding:0!important} /* Author: guoxiaoling */ /* Author: shiwenliang */* { margin:0; padding:0;} html { text-align:center; background:#fff;} body { width:960px; position:relative; margin:0 auto; padding:10px 0; text-align:left; font:12px/1.6em Tahoma,Verdana, Lucida, Arial, Helvetica, 宋体,sans-serif; color:#666;} h1, h2, h3, h4, h5, h6 { font-size:100%;} address, caption, cite, code, dfn, em, strong, th, var,b,i { font-style:normal; font-weight:normal;} table { border-collapse:collapse; border-spacing:0; empty-cells:show;} ol, ul { list-style:none outside;} :focus { outline :0;} fieldset, img { border:0;} caption, th { text-align :left;} q:before, q:after { content:'';} a { text-decoration:none; } a:hover { text-decoration:underline;} input,select,textarea { font-size:12px; padding:2px;} .clearfix { overflow:hidden; zoom:1;}
󰈣󰈤
 
 
 
>>返回首页<<
 
 热帖排行
 
 
 
静静地坐在废墟上,四周的荒凉一望无际,忽然觉得,凄凉也很美
©2005- 王朝网络 版权所有