The Dreamweaver layer uses the eight law

Source: Internet
Author: User
Tags window dreamweaver
The Dreamweaver dreamweaver layer uses the eight law

Of course, these are not the true laws, but some helpful advice that keeps you from being trapped in the use of layers. There are nine laws, we have to streamline one, and the following eight:

1. If you want to nest layers, never use a multiple parent layer, you should share a single parent layer. If you must use a nested layer that is not fully qualified in the stylesheet, do a regular check in the netscape4x.

2. Always place the text in a table in the layer-the table should be absolute size (in pixels, not a percentage) and not larger than the layer, although nested tables in the primary table can be set to a relative percentage size. Doing so prevents nc4xx from resizing the text to an unexpected position when the window size changes.

3. Never place the layer in the table. Netscape 4x will not be able to correctly understand the layers in the table.

4. Always use Netscape Resize Fix this plugin on any page with a layer or CSS style.

5. Do not expect the absolutely positioned layer to remain aligned with the centered table or page content when the browser window size or screen resolution changes. There are plug-ins that can be used to dynamically implement this effect.

6. Do not attempt to place scrollbars (with the overflow attribute) in the layer-use a DHTML scroll or projectseveniframe technology instead, and for Netscape 4.x users, you can set up a specific pop-up page in the IFRAME.

7. Never give a layer and an image the same name-each layer should have its own unique and distinct from the other elements on the page (in fact, you should not let two elements with the same name appear on the same page).

8. Do not apply events/behaviors directly to the layer. They will not work across browsers. Apply them to the content (links or images) in the layer rather than to the layer itself.



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.