Web production Knowledge: DIV+CSS interview topics

Source: Internet
Author: User
Tags min

1. Does the hover style not appear after the hyperlink access?

The hyperlinks that have been clicked are not hover and active, and the workaround is to change the order of the CSS properties: l-v-h-a

Double margin Bug for 2.ie6

For example:

Float after the original outside distance of 10px, but IE interpreted as 20px, the solution is to add display:inline

3. Why the text in FF can not open the height of the container?

Standard browser fixed height value of the container is not as IE6 as the open, then I want to fixed height, but also want to be able to be stretched how to set it? The way is to remove he ight set min-height:200px; Here to take care of the IE6 that don't know min-height can be defined like this:

div { height:auto!important; height:200px; min-height:200px; }

4. Why is IE unable to set the scroll bar color in the Web Standard?

Original style settings:

The solution is to replace the body with HTML

5. Why can't I define a container with a height of around 1px?

IE6 This problem is due to the default row height caused by the resolution of a number of ways, such as: Overflow:hidden | zoom:0.08 | line-height:1px

6. How can I let the layer display above flash?

The solution is to set up transparency for flash:

7. How do I align a layer vertically in the browser?

Here you use a percentage absolute positioning, a method with a negative value for the outer patch, and a negative value divided by two for its width height.

8, Firefox nested div tags in the center of the problem solution

The following conditions are assumed:


  

If you want to implement B centered in a, you typically only need to use CSS to set the Text-align property of a to center. Such a method looks normal in IE, but in Firefox, B is left.

The solution is to set the horizontal margin of B to auto. For example, set the CSS style for B: margin:0 auto;.



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.