通用CSS样式

用这个
*{ padding : 0 ; margin : 0 ;}
div,dl,dt,dd,form,h 1 ,h 2 ,h 3 ,h 4 ,h 5 ,h 6 ,img,ol,ul,li,table,th,td,p,span,a{ border : 0 ;}
img,input{ border : none ; vertical-align : middle ;}
body{ font-family : Tahoma , Arial , Helvetica , "宋体" ; font-size : 12px ; text-align : center ; background : #FFF ; color : #000 ;}
html{overflow-y: scroll ;}
ul,ol{ list-style-type : none ;}
th,td,input{ font-size : 12px ;}
h 3 { font-size : 14px ;}
button{ border : none ; cursor : pointer ; font-size : 12px ; background-color : transparent ;}
select{ border-width : 1px ;_zoom: 1 ; border-style : solid ; padding-top : 2px ; font-size : 12px ;}
.clear{ clear : both ; font-size : 1px ; height : 0 ; visibility : hidden ; line-height : 0 ;}
.clearfix:after{ content : "" ; display : block ; clear : both ;}
.clearfix{zoom: 1 ;}
a:link,a:visited{ text-decoration : none ; color : #333 ;}
a:hover,a:active{ text-decoration : underline ; color : #f60 ;}

1.网易
body { text-align: center; font-family:"宋体", arial;margin:0; padding:0; background: #FFF; font-size:12px; color:#000;}
div,form,img,ul,ol,li,dl,dt,dd {margin: 0; padding: 0; border: 0; }
li{list-style-type:none;}
img{vertical-align:top;}
h1,h2,h3,h4,h5,h6 { margin:0; padding:0;font-size:12px; font-weight:normal;}

a:link {color: #1f3a87; text-decoration:none;}
a:visited {color: #83006f;text-decoration:none;}
a:hover {color: #bc2931; text-decoration:underline;}
a:active {color: #bc2931;}
2.MSN
body {padding:0;margin:0;text-align:center;color:#666;font-size:12px;font-family:tahoma,arial,sans-serif;}
h1, h2, h3, h4, h5, h6, form, div, p, i, img, ul, li, ol, table, tr, td,th, fieldset, label, legend,button,input { margin:0;padding:0;}
li{list-style:none;}
a img{border:none;}
a:link{text-decoration:none;color:#07519A;}
a:visited{text-decoration:none;color:#07519A;}
a:active,a:hover{text-decoration:underline;color:#07519A;}
3.搜狐

body{font-family:'宋体';text-align:center;margin:0 auto;padding:0;background:#FFF;font-size:12px;color:#333;}
body > div{text-align:center;margin-right:auto;margin-left:auto;}
div,form,ul,ol,li,span,p{margin:0;padding:0;border:0;}
img,a img{border:0;margin:0;padding:0;}
h1,h2,h3,h4,h5,h6{margin:0;padding:0;font-size:12px;font-weight:normal;}
ul,ol,li{list-style:none}
table,td,input{font-size:12px}

a{outline-style:none;color:#333;text-decoration:none}
a:hover{color:#c00;text-decoration:underline;}

 


通用样式01

[html]  view plain  copy
  1. @charset "utf-8";  
  2. /* ------------------------------------全局定义---------------------------------------- */  
  3. /* 将具有默认margin和padding的标记置零,所有标记的margin、padding都在使用时具体定义 */  
  4. *{ margin:0;padding:0;}  
  5.   
  6. /* 修正IE5.x和IE6的斜体溢出bug */  
  7. * html body{ overflow:visible;}  
  8. * html iframe, * html frame{ overflow:auto;}  
  9. * html frameset{ overflow:hidden;}  
  10.   
  11. /* 常用标签,基本标签默认样式取消,HTML标签,取消基本标签默认样式,防止不同浏览器显示效果不同,text-align:center; 解决不同浏览器居中问题 */  
  12. body{ color:#000; background:#FFF; font:12px/22px Verdana,Arial,sans-serif,"Times New Roman",宋体; text-align:center;}  
  13. body,ul,ol,li,p,h1,h2,h3,h4,h5,h6,form,fieldset,table,td,img,div,tr{ margin:0; padding:0;}  
  14. input,select{ font-size:12px; vertical-align:middle;}  
  15.   
  16. /* 设置内容左对齐,恢复因BODY设置剧中产生的继承 */  
  17. body div{ text-align:left;}  
  18.   
  19. /* 标签属性,textarea,input 强制输入时内容超出时换行 */  
  20. textarea,input{ word-wrap:break-word; word-break:break-all; padding:0px;}  
  21.   
  22. /* 清除ul列表标记的样式,ul列表更多的用在不需要列表前置符号的样式里 */  
  23. li{ list-style-type:none;}  
  24.   
  25. /* 定义图片边框,当图片作为链接内容被填充时,会有默认边框出现,重定义掉 */  
  26. img{ border:0 none;}  
  27.   
  28. /* 定义默认的链接样式,仅仅是作为默认样式提供,可以在各自的实例中覆盖掉 */  
  29. a:link, a:visited{ color:#04C; text-decoration:none;}  
  30. a:hover{ color:#F60; text-decoration:underline;}  
  31.   
  32. /* 去掉链接的虚线框 */  
  33. a { outline:none; star:expression(this.onFocus=this.blur());}  
  34.   
  35. /* 定义H系列标签,覆盖H系列标签默认属性 */  
  36. h1{ font-size:24px;}  
  37. h2{ font-size:20px;}  
  38. h3{ font-size:18px;}  
  39. h4{ font-size:16px;}  
  40. h5{ font-size:14px;}  
  41. h6{ font-size:12px;}  

通用样式02

[html]  view plain  copy
  1. @charset "utf-8";  
  2. /* CSS Document */  
  3. body,h1,h2,h3,h4,h5,h6,hr,p,blockquote,dl,dt,dd,ul,ol,li,pre,form,fieldset,legend,button,input,textarea,th,td {margin:0;padding:0;}  
  4. body, button, input, select, textarea {font:12px/1.5 tahoma, arial, \5b8b\4f53, sans-serif;}  
  5. h1, h2, h3, h4, h5, h6 {font-size:100%;}  
  6. address, cite, dfn, em, var {font-style:normal;}  
  7. code, kbd, pre, samp {font-family:courier new, courier, monospace;}  
  8. small {font-size:12px;}  
  9. ul, ol {list-style:none;}  
  10. a {text-decoration:none;}  
  11. a:hover {text-decoration:underline;}  
  12. sup {vertical-align:text-top;}  
  13. sub {vertical-align:text-bottom;}  
  14. legend {color:#000;}  
  15. fieldset, img {border:0;}  
  16. button, input, select, textarea {font-size:100%;}  
  17. table {border-collapse:collapse;border-spacing:0;}  

通用样式03

[html]  view plain  copy
  1. @charset "utf-8";  
  2. /* CSS Document */  
  3. html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,font,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td{ margin: 0; padding: 0; border: 0; outline: 0; font-weight: inherit; font-style: inherit; font-size: 100%; font-family: inherit; vertical-align: baseline; text-decoration:none; }   
  4. :focus { outline: 0; }   
  5. table { border-collapse: separate; border-spacing: 0; }   
  6. caption, th, td { height:30px; font-weight: normal; }   
  7. a img, iframe { border: none; }   
  8. ol, ul { list-style: none; }   
  9. input, textarea, select, button { font-size: 100%; font-family: inherit; }   
  10. select { margin: inherit;}   
  11. body { font-size:12px; font-family:"宋体"; }   

通用样式04

[html]  view plain  copy
  1. @charset "utf-8";  
  2. /* CSS Document */  
  3. *{padding:0;margin:0;}   
  4. div,dl,dt,dd,form,h1,h2,h3,h4,h5,h6,img,ol,ul,li,table,th,td,p,span,a{border:0;}   
  5. img,input{border:none;vertical-align:middle;}   
  6. body{font-family:Tahoma,Arial,Helvetica,"宋体";font-size:12px;background:#FFF;color:#212121;   
  7. line-height:30px; background:#e6e6e6;}   
  8. html{overflow-y:scroll;}   
  9. ul,ol{list-style-type:none;}   
  10. th,td,input{font-size:12px;}   
  11. h3{font-size:14px;}   
  12. button{border:none;cursor:pointer;font-size:12px;background-color:transparent;}   
  13. select{border-width:1px;_zoom:1;border-style:solid;padding-top:2px;font-size:12px;}   
  14. .clear{clear:both;font-size:1px;height:0;visibility:hidden;line-height:0;}   
  15. .clearfix:after{content:"";display:block;clear:both;}   
  16. .clearfix{zoom:1;}   
  17. a:link,a:visited{text-decoration:none;color:#333;}   
  18. a:hover,a:active{text-decoration:underline;color:#f60;}   
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值