Common css+html problems

Source: Internet
Author: User

4. What are the inline elements? What are the block-level elements? CSS box model?
Block-level elements: div p H1 H2 H3 h4 form UL
Inline elements: A b br i span input Select
CSS box model: Content, Border, margin,padding

7. What are the three layers of the front-end page, and what are the roles?
Structure Layer Html Presentation layer CSS behavior Layer JS

1. The use of display
2.3 pixel issues caused by a bilateral pitch bug Use of float causes the use of dislpay:inline-3px
3. Hyperlink hover Use the correct writing order after clicking the link visited hover active
4.ie Z-index Issue to parent add position:relative
5.Png Transparent use JS code to change
6.min-height min height! Important Resolve '
7.select cover in IE6 Use an iframe to nest

Depending on the location of the page, the CSS style sheet can be divided into

. In-line style sheets, inline style sheets, external style sheets

What is the difference between an HTML element ID and a class?

ID and class are two common properties in a Web page, and they work together to make the entire page colorful, and when we define a style for an element, both are available, but are they different?

    • 1. When writing in a CSS stylesheet, the ID selector prefix should add "#" and the class selector prefix should be "."
    • 2, the id attribute can only be used once when writing on a page, and class can be used repeatedly
    • 3, id as an element tag to distinguish between different structure and content, and class as a style, can be applied to any structure and content to
    • 4, the general principle of layout: ID first determine the structure and content and then define the style for it. The opposite of class, however, is to define the style first and then apply the style to different structures and content on the page according to the different requirements.
    • 5, the browser is allowed to appear on the same page multiple IDs of the same property values, the general situation can be displayed normally, but when JavaScript through the ID to control the elements will be an error
    • 6, in practical applications, class is often used in the text section and page decoration, and the ID is used in the grand layout and design contains the block, or contains the style of the box.
the difference between CSS Display:none and Visibility:hidden
      • Visibility:hidden hidden, but retains location while browsing
      • Display:none is considered non-existent and does not load

      9. Why to use Div+css layout form and content separation
      • Greatly reduce the page code, improve the structure of page browsing speed clear, conducive to SEO shorten the revision time, layout more convenient design, multiple use 20. What are the characteristics of the block element? The default is that the block element always starts on a new line, the height, the row heights, and the top and bottom margins are controlled; the width defaults to 100% of its container, unless a width is set

Common css+html problems

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.