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

網(wǎng)頁制作中十個(gè)最好的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 (自動(dòng)清除)

.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滾動(dòng)條渲染)

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

7. Opacity (透明度)

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

8. PRE Tag (標(biāo)簽預(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標(biāo)簽背景重復(fù))

<! 主站蜘蛛池模板: 国产永久免费视频 | 免费黄在线观看 | 国产精品好好热在线观看 | 99久久精品费精品国产 | 欧美日日 | 欧美特级视频 | 日韩视频在线观看一区 | vvvv98国产成人综合青青 | 日韩欧美成人乱码一在线 | 精品一区二区三区五区六区七区 | 欧美一级成人免费大片 | 欧美综合一区二区三区 | 色狠狠综合网 | 国产精品亚洲欧美日韩久久 | 伊人久久国产精品 | 国产第一导航深夜福利 | 中文字幕天天躁日日躁狠狠 | 国产成人短视频 | 自拍三区 | 在线亚洲精品国产成人二区 | 色噜噜视频 | 国产精品短视频 | 亚洲欧美激情在线 | 国产1区2区3区在线观看 | 久久国产乱子伦精品免 | 成人a大片高清在线观看 | 国产另类视频 | 中文字幕日韩精品一区口 | 99在线观看视频免费精品9 | 91视频观看免费 | 思思久久这里只精品99re66 | xxxxx在线| 亚洲丶国产丶欧美一区二区三区 | 99国内视频 | 色幽幽 | 国内精品久久久久久野外 | 久久亚洲视频 | 国产成人精品午夜 | 精品一区二区三区免费 | 久久99国产亚洲高清观看首页 | 国产高清国内精品福利 |