Chinaunix首页 | 论坛 | 博客
  • 博客访问: 185303
  • 博文数量: 62
  • 博客积分: 1477
  • 博客等级: 上尉
  • 技术积分: 475
  • 用 户 组: 普通用户
  • 注册时间: 2012-07-11 14:28
文章分类

全部博文(62)

文章存档

2012年(62)

我的朋友

分类: 系统运维

2012-07-16 15:20:37

关于css的重置代码有很多,也有不少人写过适合不同站点的重置代码,这里发个平时使用的方法。

代码如下:

/* haozi / hao.chen@qq.com / 2011.06.15 */ body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,code,form,fieldset,legend,input,button,textarea,blockquote,th,td,p{margin:0;padding:0} input,button,select,textarea{outline:none}li{list-style:none}img{border:none}textarea{resize:none} body{color:#666;background:#fff;word-break:break-all;word-wrap:break-word;text-align:center} body,input,textarea{font-size:12px;font-family:\5b8b\4f53,Verdana,Arial} a{color:#305999;text-decoration:none;outline:none} a:hover{color:#090} .wrap{width:1000px;margin:0 auto;text-align:left;position:relative} /*clearfix*/ .clearfix:after,.wrap:after{content:".";display:block;height:0;clear:both;visibility:hidden} .clearfix,.wrap{*+height:1%}



阅读(957) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~