CSS Learning Note 03

Source: Internet
Author: User

If block-level labels move less than desired, you can use border:1px solid red; debug, Debug, Cancel

If the previous control is float:left or float, we need to clear:bothl; clear, and then go directly to the next line;

The previous is a float label, the next label may be excessively fit, at this time margin:top; invalid, you can also let this label use Float:left properties when they are in the same range, they will naturally be executed according to style;

Because the label of float does not occupy space, the next control can take out the margin of a property label containing float, forming an overly fit, affecting the effect. The issue in Konghao about CSS Video 08 implementation of a simple small site has said

/* Hyperlinks By default */
a:link,a:visited{
Text-decoration:none;
font-size:12px;
Color: #216;
}

/* After the link click Effect, for IE, will not automatically inherit the effect of a:link, so in order to meet the effect of IE browser, it is best to a:link,a:visted*/
a:visted{
Color: #a21;
}

#nav ul Li is not the same as Ul.nav_li Li's generation time, when the included operator is used, it takes less load time than the class, so if you define a class style at this time, you will not overwrite the included style with the
A class can execute two class, class= "Nav_li nav_last"

CSS Learning Note 03

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.