My diary-1 *** 000 (talking about CSS)

Source: Internet
Author: User

1. To minimize unnecessary elements, you should only use Div when there is no existing element to implement regional segmentation. For example: main navigation list

You do not need to enclose it in the div.
2. Div is used to group block-level elements, and span can be used to group or identify internal elements. The concept should be compromised.
3.www.andybudd.com/bookmarklets/ bookmarklet
4. General selector *{}
5. FORM {15px;}, form # search {width: 30px ;}
6. Add an ID on each site so that you can use your own style to overwrite your style sheet and site scope, also known as CSS signature,

Generally, the format is id = "www-sitename-com". You may want to overwrite your font size or color scheme to read it. Body # www-

Sitename-com {font-size: 200%; Background-color: black; color: White ;}
7.when designing a website, you must first compile the CSS Management General page partition ----basic.css

(Layout.css,typography.css,color.css)
8. In css writing, you must add a comment block, which describes the purpose, creation date, or version number of the style sheet, and

He contacted the Creator:
/*------------------------------------
Basic style sheet (for version 4 browsers)
Version: 1.1
Author: liuliang
Email: liuliang12320005@163.com
Website: kunba.aokhost.com
-------------------------------------*/
Also, tell others about your naming rules and possible bugs.

 

This article from the csdn blog, reproduced please indicate the source: http://blog.csdn.net/liuliang1232005/archive/2008/04/29/2341747.aspx

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.