Browser compatibility issues recorded earlier

Source: Internet
Author: User

1. Several Chinese characters are followed by a string of line breaks

Solution: Word-break: Break-all; Word-wrap: Break-word; display: block;

2. uL/OL Li may have gaps in IE6

To use float, add the Li width.

Solution: Li vertical-align: Top

3. Locate IE6. If it is not displayed, check if there is no clear floating.

4. The negative value of margin IE6 is not displayed. Check if a relative value can be added.

 

5. the IE page is displayed on the left to see if the document declaration is incorrect.

6. Check if the title is directly under the head in IE6.

7. Hack

_ Height for IE6

* Height for IE6, IE7, and travel 2. Versions

Position: absolute \ 9; for IE browsers

-Moz-and so on

Color: red! All important browsers

8. Solve the Problem of introducing JS with PNG into IFRAME

If (El. currentstyle. Position = "static") {If (El. nodename! = 'Html ') El. style. Position = "relative "}

 

If (El. currentstyle. Position = 'static ') {El. style. Position = 'relative ';}

 

9. var globalie6 =/MSIE 6/ig. Test (window. Navigator. useragent )&&! /MSIE [1-57-9]/ig. Test (window. Navigator. useragent );

10. Display ellipsis overflow: hidden; text-overflow: ellipsis; white-space: nowrap;

11,

If (-[1,]) {
// Alert ("this is not an Internet Explorer! ");

} Else {
// Alert ("this is IE browser! ");

}

12,

There is a location in the scroll bar, and there is a problem solution in IE. Add a location in the parent level.

13. offsetparent IE does not support finding his parent directly by IE

Solution: This. parentnode. offsetparent in IE

Placeholder = "test"

Recently, I sorted out my blog and integrated all the relevant content into my blog on the blog site. The reposted content will indicate that it is not original.

Technology is what needs to be accumulated

The more books are read, the thinner the books are read, and the more thick the books are read.

Same technology,

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.