Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What key points should be paid attention to in learning css

2025-03-31 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/01 Report--

In this article, the editor introduces in detail "what key points you should pay attention to in learning css". The content is detailed, the steps are clear, and the details are handled properly. I hope this article "what key points you should pay attention to in learning css" can help you solve your doubts.

To learn the network technology of css, you should pay attention to the following points:

The 1.CSS attribute applies principles.

Principle 1: the height should be set for the minimum block level unit of the home page DIV; the height should not be set for DIV blocks where data may be added to the subpage.

Principle 2:css style inheritance relationship must be controlled within three layers

Principle 3: the encoding format of all page files is: UTF-8

2.CSS naming convention.

A global style base.css refers to a style common to all pages, or to a common block.

Home style index.css

Channel Page style channel.css

Detail page style detail.css

If you have a special individual page style, you can choose another style.

3. The page frame structure preserves words.

Page holder: # wrap page header: # header

Page center content: # maincontent page bottom: # footer

Horizontal segmentation container: section,field,column box content attribute: contentbg

Properties above the box: topbg below the box: bottombg

Properties on the left of the box: leftbg on the right of the box: rightbg

4. Navigation reserved words.

Navigation: nav main navigation: mainnav

Sub-navigation: subnav top navigation: topnav

Side navigation: sidebar left navigation: leftsidebar

Right navigation: rightsidebar menu: menu

Submenu: submenu drop-down menu: dropmenu

Quick menu: quickmenu

5. Function reserved word.

List: list title: title

Summary: intro content: text

Button: btn search: search

Landing: login Registration: regsiter

Tip: msg Tip: tips

Icon: icon Scroll: scroll

6. Comments.

Frame styles that are easily confused or important in pages and stylesheets should be commented.

The format of the comments in the page is

-- to start

-- to end

After reading this, the article "what key points to pay attention to in learning css" has been introduced. If you want to master the knowledge points of this article, you still need to practice and use it yourself to understand it. If you want to know more about related articles, welcome to follow the industry information channel.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report