发个自己的CSS重置基础代码
生活随笔
收集整理的這篇文章主要介紹了
发个自己的CSS重置基础代码
小編覺得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.
關(guān)于css的重置代碼有很多,也有不少人寫過適合不同站點(diǎn)的重置代碼,這里發(fā)個(gè)浩子平時(shí)使用的額方法。
代碼如下:
/* 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:5b8b4f53,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%}話說這兩天文章發(fā)布頻率下降,給大家道個(gè)歉,接下來將要寫幾篇有關(guān)css性能的文章,還請(qǐng)各位收聽 已獲得最新文章資源。
創(chuàng)作挑戰(zhàn)賽新人創(chuàng)作獎(jiǎng)勵(lì)來咯,堅(jiān)持創(chuàng)作打卡瓜分現(xiàn)金大獎(jiǎng)
總結(jié)
以上是生活随笔為你收集整理的发个自己的CSS重置基础代码的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 解读浮动闭合最佳方案:clearfix
- 下一篇: HTML5 Shiv #8211; 让该