<rt id="bn8ez"></rt>
<label id="bn8ez"></label>

  • <span id="bn8ez"></span>

    <label id="bn8ez"><meter id="bn8ez"></meter></label>

    thinking

    one platform thousands thinking

    Web browser hacks, Css hacks - ie, firefox, chrome, safri, Opera

    CSS hacks take advantage of browser bugs for hiding CssRules from specific web browsers. Listed below are the hacks for major browsers like ie6, ie7, firefox2, firefox3, Google chrome, safari and opera.

    Inline Hack for IE

    * (star) can be used as the inline hack for both ie6 and ie7.

    For Example:

    Syntax: .selector{*property:value;}

    .logo{*margin-left:10px;}

    IE6 browser inline Hack

    _ (underscore) can be using only for ie6

    For Example:

    Syntax: .selector{_property:value;}

    .logo{_margin-left:10px;}

    Firefox inline style

    content:"\"/*" can be used for firefox only where IE cannot recognize it.

    Internal Style

    Use * html for ie6 and *+html hack for ie7

    For Example:

    Synatax: * html .selector{property:value;} , * + html .selector{property:value;}

    * html .logo{margin-left:10px;} for ie6

    * + html .logo{margin-left:20px;} for ie7

    IE7 and Firefox browser Hack

    Use html>body hack for ie7 and firefox.

    For Example:

    Syntax: html>body .selector{property:value;}

    html>body .logo{margin-left:10px} will take only in ie7 and firefox

    Mordern browser Hack or Firefox Hack

    Use html>/**/body {} hack which will support only in both firefox2 and firefox3.

    For Example:

    Syntax: html>/**/body .selector{property:value;}

    html>/**/body .logo{margin-left:10px} will take only in firefox.

    Browser hack for Opera versions 9 and below

    Use html:first-child {} for opera browser. Also you use

    Syntax: @media all and (min-width:0px) {head~body .selector {property:value;}}

    For Example:

    @media all and (min-width:0px) {head~body .logo {margin-left:10px;}} only for opera

    Firefox3 browser hack

    Use html>/**/body .selector, x:-moz-any-link, x:default {property:value;} for firfox3 only.

    For Example:

    Syntax: html>/**/body .pro_yl, x:-moz-any-link, x:default {background:red;}

    Google Chrome browser hack

    Use body:nth-of-type(1) .elementOrClassName{property:value;} only for google chrome.

    For Example:

    body:nth-of-type(1) .logo{margin:20px;}

    Safari browser hack

    Use Syntax: body:first-of-type .elementOrClassName{property:value;}

    Fox Example:

    body:first-of-type .logo{margin-top:10px;} only for safari.

    Hope this information will be useful for you. Please use the browser hacks in a proper manner. For example, you might know double margin bug in ie6. In such case you can use display inline which will render correctly by all the browsers instead of you using ie6 hack seperately

    posted on 2010-02-10 14:44 lau 閱讀(559) 評論(1)  編輯  收藏 所屬分類: Web

    Feedback

    # re: Web browser hacks, Css hacks - ie, firefox, chrome, safri, Opera 2011-02-12 15:09 lau

    http://shishi11.javaeye.com/blog/840719  回復  更多評論   

    主站蜘蛛池模板: 国产亚洲精品VA片在线播放| 国产免费观看网站| 亚洲免费精彩视频在线观看| eeuss在线兵区免费观看| 一级片在线免费看| 一级毛片免费一级直接观看| 久久亚洲精品无码av| 色天使色婷婷在线影院亚洲| 美女被艹免费视频| 无码精品人妻一区二区三区免费| 深夜免费在线视频| 中文字幕免费播放| 男人的天堂网免费网站| 国产成人久久AV免费| 久久不见久久见免费视频7 | 亚洲另类图片另类电影| youjizz亚洲| 亚洲狠狠色丁香婷婷综合| 亚洲乱码无人区卡1卡2卡3| 国产精品亚洲综合| 四虎影视在线看免费观看| 一区二区三区视频免费观看| 一区二区三区无码视频免费福利| 一级毛片在线免费观看| 少妇高潮太爽了在线观看免费| 免费看美女让人桶尿口| 午夜亚洲av永久无码精品| 国产亚洲日韩在线三区| 亚洲一级二级三级不卡| 亚洲人成小说网站色| 黄色毛片免费网站| 成人久久免费网站| 97免费人妻无码视频| 国产美女无遮挡免费视频| 亚洲色精品88色婷婷七月丁香| 亚洲男人电影天堂| 亚洲AV无码AV日韩AV网站| www免费黄色网| 亚洲免费网站在线观看| 国产成人精品男人免费| 国产亚洲成av人片在线观看 |