Believe that there are many HTML5 all-stack development of the beginners to the CSS naming rules are confused, this is not a good phenomenon, then the following to give you a HTML5 all-stack development of the naming standard, I hope to help you.CSS Naming conventionsGlobal style n
When we develop the Css+div Web page (Xhtml), the more confused and tangled thing is the CSS naming , especially the novice do not know where to name, how to name is a good way.I. Description of the naming rules:1), all the names are preferably lowercase2), the value of the attribute must be enclosed in double quotatio
The class and ID names in CSS can be customized, and they do not retain keywords like some programming languages. They can be completely named in CSS. But to make CSS more readable, many people advocate standard naming. Speaking of this, I found that many of the
abbreviationsSome color code can be abbreviated, we try to abbreviate it, improve the user experience mainly.Hyphen CSS Selector naming specification1. Long name or phrase you can use the middle horizontal line to name the selector.2. It is not recommended to use the "_" Underline to name the CSS selector, why?
Press the SHIFT key less when typing;
Article Introduction: in the 4.1.3 section of the CSS2.1, it is mentioned that identifiers (including element names in selectors, classes and IDS) can only contain characters [a-za-z0-9] and ISO 10646 character encoding u+00a1 and above, plus hyphen (-) and underscore (_); Or a hyphen followed by a number to begin with. They can also contain an escape character plus any ISO 10646 character as a number
Operating system version: Windows 7
Browser version: Ie6
class language, one of the most powerful features is freedom, there are many solutions, you can use different coding styles and technical problems, but this will be at the cost of unpredictable. Without a unified structure, JavaScript code is difficult to understand, difficult to maintain, and poorly reused.On the other hand, class-based programming is still the most popular object-oriented programming pat
Div+css canonical naming of large complete works, naming rules description:1), all the names are preferably lowercase2), the value of the attribute must be enclosed in double quotation marks (""), and must have values such as class= "DIVCSS5", id= "DIVCSS5"3), each label must have the beginning and the end, and must ha
The company is using less to dynamically compile css, but in writing css, still need to follow some rules.1 position attributes (position, top, right, z-index, display, float, etc.) 2 size (width, height, padding, margin) 3 Text series (font, line-height, letter-spacing, color-text-align, etc.) 4 background (background, border, etc.) 5 Others (animation, transition, etc.)1 attribute Abbreviations2 Remove th
: VotePARTNER: PartnerLinks: LinkCopyrights: Copyrightname of class:(1) Color: Use the name of the color or the 16 code, such as. red {color:red;}. F60 {color: #f60;}. ff8600 {color: #ff8600;}(2) Font size, directly using "font+ font size" as a name, such as. font12px {font-size:12px}. font9pt {FONT-SIZE:9PT}(3) Alignment style, using the English name of the alignment target, such as. left {float:left;}. Bottom {Float:bottom}(4) title bar style, using
Css|web|web Standard | design
Common CSS naming rules
Header: Header
Content: Content/container
Tail: Footer
Navigation: Nav
Sidebar: Sidebar
Column: Column
Page perimeter control overall layout width: Wrapper
Left Right Center
Login Bar: Loginbar
Logo: Logo
Advertisement: Banner
Page body: Main
Hotspot: Hot
News
Download: Download
Sub-navigation: Subnav
Menus:
Common CSS naming rules
Header: Header
Content: Content/container
Tail: Footer
Navigation: Nav
Sidebar: Sidebar
Column: Column
Page perimeter control overall layout width: Wrapper
Left Right Center
Login Bar: Loginbar
Logo: Logo
Advertisement: Banner
Page body: Main
Hotspot: Hot
News
Download: Download
Sub-navigation: Subnav
Menus: Menu
Sub-menu: submenu
Search on: Search
Friendship Link
the watercress. This will improve some of the things in a navigation bar. Can be used as a cushion for a later use. It can also be used as a spacing element separated from navigation and content, and is currently used to separate content from navigation.When we open the inside is a new world-The description requires a variety of CSS to write, it will be the first CSS because other tags have the same prope
The well-organized css naming rules on the internet provide reference for css code standardization and increase code readability.Id:(1) Page StructureContainer: container header: header content: content/containerPage subject: main, footer: footer, navigation: navSidebar: sidebar column: left and right column: leftright centerOverall Layout width of the page perip
morphology you think it's going to be fast.Do not deny,. x the most straightforward naming method is the highest rendering efficiency. (this advice is important)Reject id! Reject Hierarchy! Reject tags!Their existence is only for the sake of promoting the style priority, all limits the dead scope, also talks about how to reuse.ID Let it go and JS to make it good, do not let it into the world of CSS.The maximum performance consumption selector should
Div + CSS naming rules
Common CSS naming rules:Header: Header Content: Content/Container Tail: Footer Navigation: NAV Sidebar: Sidebar Topic: Column Overall Layout width of the page peripheral control: Wrapper Middle left and right: Left right center Logon entry: Loginbar Flag:Logo Advertisement: Banner Page subject:
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.