<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  回復  更多評論   

    主站蜘蛛池模板: 日本19禁啪啪无遮挡免费动图| 久草在视频免费福利| 七色永久性tv网站免费看| 亚洲AV日韩AV永久无码下载| 成人特级毛片69免费观看| 亚洲人成网站色在线观看| 亚洲A∨无码无在线观看| 亚洲精品美女久久7777777| 亚洲视频在线视频| 亚洲A∨无码无在线观看| 激情吃奶吻胸免费视频xxxx| 亚洲av无码一区二区三区天堂古代 | 亚洲大片免费观看| 免费激情网站国产高清第一页 | 亚洲国产精品成人AV无码久久综合影院 | 在线视频亚洲一区| 亚洲区日韩精品中文字幕| 成人片黄网站色大片免费观看cn| 日日狠狠久久偷偷色综合免费 | 日本一卡精品视频免费| 日韩精品无码一区二区三区免费| 又黄又爽无遮挡免费视频| 亚洲欧洲自拍拍偷精品 美利坚 | 亚洲综合在线视频| 亚洲丝袜中文字幕| 免费国产黄网站在线观看动图| 免费激情视频网站| 狠狠色伊人亚洲综合成人| 亚洲va精品中文字幕| 免费网站看v片在线香蕉| 鲁死你资源站亚洲av| 亚洲高清有码中文字| 欧洲乱码伦视频免费| 亚洲一卡2卡三卡4卡有限公司| 东方aⅴ免费观看久久av| 91精品手机国产免费| 免费大黄网站在线看| 亚洲高清免费视频| 99热这里有免费国产精品| 亚洲成AV人在线播放无码| 亚洲爆乳精品无码一区二区|