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 are the basic types of CSS in the Web front end?

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

Share

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

What are the basic types of CSS in the front end of Web? I believe many inexperienced people are at a loss about this. Therefore, this paper summarizes the causes and solutions of the problem. Through this article, I hope you can solve this problem.

Basic types of CSS

1 CSS

1.1 css refers to cascading style sheets (Cascading Style Sheets)

1.2 Styles define how HTML elements are displayed

1.3 styles are usually stored in stylesheets

Style is added to HTML 4.0to solve the problem of separation of content and presentation.

1.5 external stylesheets can greatly improve productivity

1.6 external stylesheets are usually stored in CSS files

1.7 more than one style definition can be cascaded into one

2 Main Topic

2.1 redefine HTML styl

Redefine HTML style for designers to redefine existing HTML tag styles, affecting all set tag styles, used to unify the style definition of a tag in a web page

Style name "HTML label" example: hr {border:1px dotted # 333333}

2.2 Link status Styl

The link state style sets a special style for the designer for different states of the link, affecting the links in the area where the link is used.

A.nav:link (no spaces in the middle), .nav a:link first can only be modified in the tag

The second can modify all other tags that contain tags.

2.3 Custom Styl

The style is a new CSS style customized by the designer, which affects the area being used and is used to complete local style settings in the web page.

The name of the style "." + "the word or abbreviation described by the corresponding style effect" example: ".shadow"

Text style name ".no" + "font size" + "line spacing" + "color abbreviation" example: ".no12", ".no12 _ 24"

After reading the above, have you mastered the basic types of CSS in the front end of Web? If you want to learn more skills or want to know more about it, you are welcome to follow the industry information channel, thank you for reading!

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