About IE8 does not elicit CSS symptoms

Source: Internet
Author: User

I wonder if you've ever experienced such a situation. In the same folder

1 <!DOCTYPE HTML>2 <HTML>3     <Head>4         <MetaCharSet= "Utf-8">5         <title></title>6         <Linkrel= "stylesheet"href= "Index6.css"type= "Text/css" />        7     </Head>8     <Body>9         <Divclass= "Body">Ten I want to show the background picture One         </Div> A     </Body> - </HTML>
danganbaoguan2
1 *{2 padding:0;3 margin:0;4 List-style:none;5 Text-decoration:none;6 }7 . body{8 9 margin:0 Auto;Ten background:red; One width:963px; A height:642px; -      -}
Index6.css

In Google, Firefox, Cheetah, 2345 and other browsers will display a red background image. But in IE8 above but there is no red background picture, that means that IE8 above the external introduction of CSS is not successful.

The solution: is to <! DOCTYPE html> into <! Doctype> at this time again, IE8 above the successful appearance of red background picture

About IE8 does not elicit CSS symptoms

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.