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

    主站蜘蛛池模板: 亚洲日本VA中文字幕久久道具| 亚洲高清国产拍精品26U| 亚洲日本乱码一区二区在线二产线| a级毛片毛片免费观看久潮| 亚洲欧洲无码AV电影在线观看 | 99热在线日韩精品免费| 中文字幕一精品亚洲无线一区| 亚洲精品中文字幕麻豆| 亚洲一区在线免费观看| 精品亚洲成A人无码成A在线观看| 无码国产精品一区二区免费式直播| 亚洲av极品无码专区在线观看| 成人黄动漫画免费网站视频 | 最近2018中文字幕免费视频| 免费在线观看污网站| 精品女同一区二区三区免费播放| 五月婷婷亚洲综合| 日韩亚洲国产综合高清| 国产网站在线免费观看| 亚洲视频在线免费| 亚洲国产精品第一区二区| 四虎永久在线观看免费网站网址 | 先锋影音资源片午夜在线观看视频免费播放 | 国产精品永久免费| 亚洲国产精品一区二区久久| 五月亭亭免费高清在线| 亚洲AV色欲色欲WWW| 国产香蕉九九久久精品免费| 亚洲aⅴ无码专区在线观看| 久久精品国产亚洲5555| 曰批全过程免费视频播放网站| 亚洲av永久无码精品表情包| 国产精彩免费视频| 免费无遮挡无遮羞在线看| 亚洲av日韩av高潮潮喷无码| 插B内射18免费视频| 中国人免费观看高清在线观看二区| 亚洲字幕在线观看| 亚洲真人日本在线| 精品国产福利尤物免费| 亚洲国产成AV人天堂无码|