<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 閱讀(560) 評論(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  回復  更多評論   

    主站蜘蛛池模板: 美女网站免费福利视频| **真实毛片免费观看 | 95免费观看体验区视频| 亚洲国产精品一区第二页| 成人毛片100免费观看| 精品久久久久久亚洲| 国产自国产自愉自愉免费24区| 国内精品久久久久久久亚洲| 久久免费国产精品| 亚洲AV无码一区二区二三区入口 | 人妻无码久久一区二区三区免费| 亚洲av无码成h人动漫无遮挡 | 最新亚洲人成无码网www电影| 日韩免费一级毛片| 一区二区三区AV高清免费波多| 亚洲日韩欧洲乱码AV夜夜摸| 另类免费视频一区二区在线观看| 老汉色老汉首页a亚洲| 2015日韩永久免费视频播放| 2020久久精品亚洲热综合一本| 日韩一级免费视频| 国产裸体美女永久免费无遮挡| 亚洲2022国产成人精品无码区| 亚洲高清免费在线观看| 亚洲精品无码中文久久字幕| 亚洲国产一成久久精品国产成人综合 | 在线观看亚洲精品专区| 曰韩亚洲av人人夜夜澡人人爽 | 欧洲乱码伦视频免费国产| 亚洲精品高清国产一线久久| 免费看h片的网站| 国产精品亚洲专一区二区三区| 久久亚洲AV永久无码精品| 免费观看无遮挡www的小视频| 色偷偷亚洲第一综合网| 久久亚洲精品中文字幕三区| 色婷婷7777免费视频在线观看| 一级做a爰片性色毛片免费网站| 久久精品国产亚洲AV嫖农村妇女| 日韩免费一级毛片| 99蜜桃在线观看免费视频网站|