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 practices of css definition declaration

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

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

This article mainly introduces the practice of the css definition statement, which has a certain reference value, interested friends can refer to, I hope you can learn a lot after reading this article, the following let the editor take you to understand it.

If you want to define more than one declaration, you need to gobble up each name with a semicolon. The above example shows how to define a middle paragraph in red calligraphy. It is not important to add a semicolon at the end of a rule, because a semicolon is a separator in English, not a closing mark. However, most experienced managers will add a semicolon to each reputation, and the advantage of this is that when you add or subtract statements from existing rules, you will try your best to reduce the likelihood of depravity. It's like what:

P {text-align:center; color:red;}

You should characterize only one attribute per line to enhance the readability of the format definition, like what:

P {text-align: center; color: black; font-family: arial;} spaces and uppercase

Most style sheets contain more than one rule, while most delineation rules sweep more than one declaration. The application of multiple declarations and spaces makes the stylesheet easier to edit:

Body {color: # 000; bac kg round: # fff; margin: 0; padding: 0; font-family: Georgia, Palatino, serif;}

The ability to collect spaces will not affect the task attainments of CSS in the browser. Unlike XHTML, CSS is insensitive to uppercase. However, there is one exception: when it comes to working with HTML documents, class and id are commonly said to be slow to uppercase.

Thank you for reading this article carefully. I hope the article "what are the practices of css definition statement" shared by the editor will be helpful to you. At the same time, I also hope you will support us and pay attention to the industry information channel. More related knowledge is waiting for you to learn!

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

  • Example Analysis of v-for Loop object in vue

    This article will explain in detail the example analysis of v-for loop objects in vue. The editor thinks it is very practical, so I share it with you for reference. I hope you can get something after reading this article. 1. The value in the loop object

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

    12
    Report