CSS pop-up box

Source: Internet
Author: User

Principle

With the CSS feature # msgbody Div {}, it takes effect only when the ID is msgbody.

Compatibility

Compatible with IE7 +, chrome, and Firefox
In IE6, the Select element is always at the top layer. Fix is not supported, so it can only be absolutely located. The pop-up layer jumps to the top.
After modifying the body ID in IE6, display: block; display is incorrect (some are displayed). in IE6, use left:-pixel PX; to hide the body.

Call methods in JS

Pop-up method: Document. Body. ID = 'msgbody ';
Hiding method: Document. Body. ID = '';

Test results in chrome

 

Instance download: http://files.cnblogs.com/zjfree/cssAlert.rar

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.