CSS初始化代碼_Div+CSS教程
1.
2.
- charset ”utf-8″;
- html {background:url(/www/pic/head_back.gif) repeat-x top #FFF}
- body {width:920px;font:12px Arial;margin:0 auto;padding:0;color:#000;}
- a{color:#000; text-decoration:none}
- a:hover {color:#f00; text-decoration:underline}
- ul,ol,p,dl{margin:0;padding:0}
- ul,ol,dl{height:100%;overflow:hidden}
- li{list-style:none}
- img {border:none}
- h1,h2,h3,h4{font:12px Verdana;margin:0;padding:0}
- input {font:12px Verdana}
- /*為背景定義了顏色*/
- /*html {
- color:#000;
- background:#FFF;
- }*/
- body, div, dl, dt, dd, ul, ol, li, h1, h2, h3, h4, h5, h6, pre, code, form, fieldset, legend, input, textarea, 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;
- }
- li {
- list-style:none;
- }
- caption, th {
- text-align:left;
- }
- h1, h2, h3, h4, h5, h6 {
- font-size:100%;
- font-weight:normal;
- }
- /*添加空字符清除融合*/
- q:before, q:after {
- content:”;
- }
- abbr, acronym {
- border:0;
- font-variant:normal;
- }
- /* to preserve line-height and selector appearance */
- sup {
- vertical-align:text-top;
- }
- sub {
- vertical-align:text-bottom;
- }
- input, textarea, select {
- font-family:inherit;
- font-size:inherit;
- font-weight:inherit;
- }
- /*to enable resizing for IE*/
- /*在ie下重定義*/
- input, textarea, select {
- *font-size:100%;
- }
- /*because legend doesn’t inherit in IE */
- /*IE下legend不繼承 */
- legend {
- color:#000;
- }
相關(guān)Div+CSS教程:
- DIV+CSS設(shè)計的誤區(qū)
- CSS基礎(chǔ):常用CSS英文字體介紹
- IE6和IE7中border邊框斷線現(xiàn)象
- border:none;與border:0;的有什么不同?
- div+css下js對聯(lián)廣告不隨屏幕滾動的解決方法
- HTML元素的ID和Name屬性的區(qū)別
- divcss教程:深入了解css的行高Line Height屬性
- CSS文檔流,塊級元素和內(nèi)聯(lián)元素
- 5個你該知道的CSS3新技術(shù)
- 用正則表達(dá)式替換a標(biāo)記href值
- 30個優(yōu)秀的CSS導(dǎo)航和按鈕設(shè)計教程
- css中px和em有什么區(qū)別
Div+CSS教程Rss訂閱Div+Css教程搜索
Div+CSS教程推薦
- div css網(wǎng)頁布局如何合理的運(yùn)用html標(biāo)簽?
- 有人說div CSS網(wǎng)頁布局比較愚蠢,我來說兩句!
- 徹底弄懂CSS盒模型BoxModel
- 為什么IE6下容器的寬度和FF解釋不同呢
- WEB2.0標(biāo)準(zhǔn)教程:應(yīng)用WEB標(biāo)準(zhǔn)建設(shè)網(wǎng)站有什么好處?
- Web標(biāo)準(zhǔn)設(shè)計技巧之一文本排版淺議
- CSS實(shí)戰(zhàn)經(jīng)驗:保持CSS文件整潔與樣式統(tǒng)一
- ol有序列表居然沒有按順序顯示的奇怪現(xiàn)象
- 網(wǎng)頁中可以豎寫文字、象古代書籍那樣排版嗎?
- WEB2.0標(biāo)準(zhǔn)教程:第十天自適應(yīng)高度
猜你也喜歡看這些
- 相關(guān)鏈接:
- 教程說明:
Div+CSS教程-CSS初始化代碼
。