Record the IE8 compatibility issues that are encountered in the summary

Source: Internet
Author: User

1, pseudo element: First-child does not work, need to specify style name separately

2, the transparency representation method, especially in the function representation

{  -webkit-opacity: $value;   -moz-opacity: $value;   -ms-opacity: $value;   -o-opacity: $value;   filter: Alpha (opacity= $value *100)//0~100, so *100  opacityis required here:  $value;}

3,input text is centered vertically and the text in ie8-is not vertically centered by default. FIX: Line-height must be set

4, Answer 3: Compatible with the text of IE is not centered, open safari again see, placeholder unexpectedly biased, after find out that Safari does not need line-height, then we take IE8 hack, "\9", ex:

input {    height: 32px;     line-height: 32px\9;//IE8 's hack notation}

Record the IE8 compatibility issues that are encountered in the 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.