IE's death __ originally related to CSS _ Experience Exchange

Source: Internet
Author: User
I have two examples here, if your browser is IE, you can test it!

1, first look at these lines of code!
Copy CodeThe code is as follows:





Note: I wrote one more , this label is not closed!
Look at the effect, rest assured, this will not die!
<textarea id="runcode78669"><! DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 transitional//en" "Http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd "> <ptml xmlns=" http://www.w3.org/1999/xhtml "> <pead> <meta http-equiv=" Content-type "content=" text/html; Charset=utf-8 "/> <title>css ie</title> </pead> <body> </body> </ptml></c2 ></textarea>
[Ctrl + A full selection Note: If you need to introduce external JS need to refresh to execute]
I started adding CSS;
Copy CodeThe code is as follows:


Look at the effect, don't want to die don't point!
<textarea id="runcode70383"><! DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 transitional//en" "Http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd "> <ptml xmlns=" http://www.w3.org/1999/xhtml "> <pead> <meta http-equiv=" Content-type "content=" text/html; Charset=utf-8 "/> <title>css ie</title> <style> listinfo p{border:1px solid #00CC00; float:left; w idth:100px;} . Listinfo Span{overflow:hidden; width:100px; border:1px solid #CC3300; Float:right;} </style> </pead> <body> </body> </ptml></textarea>
[Ctrl + A full selection Note: If you need to introduce external JS need to refresh to execute]
The reason is because a label is not closed, plus float, I last night at home for three hours, before the basic positioning here, I am looking for relevant information to see How to say!?
  • Related Article

    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.