一区二区久久-一区二区三区www-一区二区三区久久-一区二区三区久久精品-麻豆国产一区二区在线观看-麻豆国产视频

網(wǎng)頁制作中十個最好的CSS hacks

 If you are front end coder you must know how important is to make cross browses, valid CSS and xHTML code. And also you must know how much time we are spending in all those hacks and fixes for various browsers. I've written about some of them earlier on PNG transparency issues, Yellow fields in web form, Vertical align div etc..

Here is the list of 10 hand picked CSS hacks and tricks which can help you in your CSS code and also save some time.

1. Vertical align div  (垂直居中)

http://stylizedweb.com/2008/02/01/vertical-align-div/

2. Min-Height  (最小高度)

selector {
min-height:500px;
height:auto; !important
height:500px;
}

3. PNG transparency  (透明png)

http://stylizedweb.com/2007/12/30/png-transparency-issues/

4. Autoclear (自動清除)

.container:after {
content: “.”;
display: block;
height: 0;
clear: both;
visibility: hidden;
}
.container {display: inline-table;}
/* Hides from IE-mac /*/
* html .container {height: 1%;}
.container {display: block;}
/* End hide from IE-mac */

5. Reset CSS  (CSS重設(shè))

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:”;}

6. Scrolling Render IE  (IE滾動條渲染)

html {
background : url(null) fixed no-repeat;
}

7. Opacity (透明度)

#transdiv {
filter:alpha(opacity=75);
-moz-opacity:.75;
opacity:.75;
}

8. PRE Tag (標簽預(yù)格式)

pre {
white-space: pre-wrap; /* css-3 */
white-space: -moz-pre-wrap !important; /* Mozilla, since 1999 */
white-space: -pre-wrap; /* Opera 4-6 */
white-space: -o-pre-wrap; /* Opera 7 */
word-wrap: break-word; /* InterNET Explorer 5.5+ */
}

9. Li Background Repeat IE (LI標簽背景重復(fù))

<! 主站蜘蛛池模板: 国产成人一区二区 | 欧洲在线| 欧美日韩视频在线第一区二区三区 | 欧美另类videosbestse | 国产综合色在线视频区 | 久久综合狠狠综合狠狠 | 国产大片黄在线观看 | 国产情侣小视频 | 涩涩涩涩涩涩涩涩涩涩 | 久热国产在线视频 | 男人扒开女人腿使劲桶动态图 | 思思99re热 | 亚洲国产网站 | 日本一道一区二区免费看 | 欧美日韩一道本 | 四虎免费看黄 | 亚洲欧美成人影院 | 午夜视频免费在线播放 | 国产精品久久一区一区 | 亚洲黄色美女 | 好吊操这里只有精品 | 五月激情婷婷丁香 | 亚洲a视频在线 | 亚洲一区日韩一区欧美一区a | 亚洲精品小视频 | 四虎欧美永久在线精品免费 | 亚洲综合区图片小说区 | 亚洲国产精品免费在线观看 | 有码中文字幕在线观看 | 日本www色视频 | 影音先锋 色天使 | 69国产成人综合久久精品 | 米奇狠狠干 | 国产精品1区2区3区在线播放 | 中文字幕一二三区乱码老 | 视频一区亚洲 | 5月丁香6月婷婷 | 国产精品亚洲片夜色在线 | 国产五区 | 欧美激情精品久久久久久大尺度 | 色婷婷视频在线 |