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 problems should be paid attention to in handwritten CSS code

2025-02-23 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

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

This article mainly shows you the "handwritten CSS code need to pay attention to what problems", the content is easy to understand, clear, hope to help you solve your doubts, the following let the editor lead you to study and learn "handwritten CSS code need to pay attention to what problems" this article.

Garbled VS coding

On the other hand, we briefly introduced the causes of web page garbled and CSS works-a small piece is due to the fact that I did not expect to code the title problem, not coding conversion problem, often because I wrote the time to apply a kind of coding, found that others compared to the good DIV+CSS fragments are better to copy over to use, after all, outsiders code does not match their own coding to form a web page in IE garbled, or CSS effect (CSS statement). Greedy method application software code conversion adhere to the conversion of web page code. Such as the application of yield transformation code in Dreamweaver. -clear speech coding charset web page coding knowledge

Upper and lowercase VS works

1. The CSS name selector is written in large numbers as beware.

Often we write html when using tags when using full-width or Chinese output method when we can see the disadvantages, but in handwritten CSS code because I named the CSS to choose this "." (dot) uppercase fact will constitute this CSS decider works, so hope CSS determiner capitalization. (may not use half-width English input method in lowercase)

2. Semicolon case in CSS attribute

When writing the CSS attribute in the CSS determiner, we often use ";" (semicolon) because we don't expect each CSS attribute to finish with the corresponding value, or because we don't write or capitalize the attribute in the determiner in the future. Although a CSS attribute resolver ends with a general end without a semicolon, we don't necessarily add it in order to develop good habits. (the CSS attribute of the curly braces of each CSS resolver must end with a semicolon ";" over. )

The above is all the contents of the article "what are the problems you should pay attention to in handwritten CSS code". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, 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