CSS hack and IE browser conditional judgment centralized summary

Source: Internet
Author: User

(from the death of a time and again finally hung out of the Baidu Space rescued, published on 2014-08-16)

Not to be continued

CSS hack

IE Browser judgment statement

360 browser-compatible methods for most Web pages:

<!DOCTYPE HTML>    <!--[If Lt IE 7]> -    <!--[If IE 7]> -    <!--[If IE 8]> -    <!--[If IE 9]> -    <!--[if (GT IE 9) |! (IE)] ><! -<HTMLclass= " the"><!--<! [EndIf] -    <Head>        <Metaname= "Renderer"content= "Webkit|ie-comp|ie-stand" />        <MetaCharSet= "Utf-8" />        <Meta Property= "Wb:webmaster"content= "Eaa2b47c8ad0b3ee" />        <title>360 Music Search-check it out and listen more</title>        <Metacontent= "360 music, music, songs, MP3, internet pop, classic oldies, music net"name= "keywords"/>        <Metacontent= "360 Music search aggregates mass quality sound source, cooperation ... Search and listen more. "name= "description"/>        <Linkrel= "stylesheet"type= "Text/css"href= "Http://s7.qhimg.com/!9366d735/common.css"/>        <Linkrel= "stylesheet"type= "Text/css"href= "Http://s1.qhimg.com/!07c64081/index.css"/>        <Linkhref= "Http://s5.qhimg.com/!d943ef94/sobar.css"type= "Text/css"rel= "stylesheet"/>        <Scriptsrc= "Http://s9.qhimg.com/!b8cb2dc7/sobar.js"></Script>    </Head>    <Body>...</Body></HTML>

Its CSS code is written like this: (Intercept part)

. B-l{Bottom:0; Left:0}. B-r{Bottom:0; Right:0}. IE6. front-view,.ie6. Behind-view{font-size:0;Line-height:0}. IE6. Front-view *,.ie6. Behind-view *{font-size:12px;Line-height:1.5}. IE6. Front-view. Mysite-reco. tab *{Line-height:26px}. IE6. Front-view. Mysite-reco. reco-list Li *{font-size:14px}. IE6. Front-view. Mysite-reco. reco-list li. Tips-reco *{font-size:12px}. IE6. Front-view. Mysite-list-null *{Line-height:68px}. Split{padding:0 5px 0 4px;font-size:14px;-webkit-text-size-adjust:None}. Dot{Display:Inline-block;Overflow:Hidden;width:2px;Height:2px;vertical-align:Top;padding:0px;font-size:16px;font-family:Microsoft Ya-Black, Tahoma;Line-height:25.6000003814697px;">}. G-hide{Display:None}. Disable-hover{pointer-events:None}

CSS hack and IE browser conditional judgment centralized summary

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.