Experiment four of HTML5 and CSS Foundation design

Source: Internet
Author: User

Project One summary:

1, anchor links for first set <a href= "#one" ></a> then set the jump target

2, you can set the Display:none first set: Target{display:block;} Achieve jump display;

3, about Text-indent can set the first line of text indentation

4. About Nth-child (odd) represents the singular line belonging to the parent class child: Nth-child (even) represents a even-numbered row belonging to the parent class child

5, about Display:block. The block element will have a single row, and multiple block elements will have a new row, by default, the block element width automatically fills its parent element with its parent element width, and the block element can be set to a length of width, but even if the set width is still exclusive one row The block element can set the margin and padding properties

6, about Display:inline. Inline elements do not have a single row, and multiple adjacent inline elements are arranged in the same row, their widths vary with the content, the length-width properties of the inline elements are not valid, the margin and padding of the inline elements are horizontal, and the vertical direction does not produce a margin effect.

7, Display:inline-block. Inline-block can have multiple elements (such as a div) on the same line, and can set the long and wide margins.

7, you can set the font and Text-align properties, Text-align is a very useful property, you can set the content center display, tablet, text and so on.

8, delete the default browser style *{list-style:none;outline:none}.

9, you can set up the appropriate HR to split the content.

10. The audio element needs to set the Contros property.

11, in the div related box text if you want to set the top and bottom left and right center need to set Line-height to div height, text-align set to center.

This article is from the "10935469" blog, please be sure to keep this source http://10945469.blog.51cto.com/10935469/1957996

Experiment four of HTML5 and CSS Foundation design

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.