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 does the css style code end with?

2025-04-07 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

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

This article will explain in detail about css style code with what to separate the end, Xiaobian think quite practical, so share to everyone for a reference, I hope you can read this article after harvest.

CSS properties are separated by upper-case semicolons

Later we will understand the skills in the CSS attribute.

First let's look at a CSS file code

.logo{ float:left; padding-top:5px;} This is an easy to find css selector-css style, here to say float:left; and padding-top:5px; after the end of both therefore semicolon ";" to end things, can not be done with Chinese semicolon or full angle input method semicolon.

How to identify semicolons accurately

1. Look at the size of the semicolon and the width of the position occupied. Smaller semi-colon ";" The size of the semicolon ";" You can clearly see it

2, you can apply software, here with Dreamweaver demonstration

It is obvious that the difference between lowercase ";" and capital ";" is that capital occupies a larger width and the hue is "blue."

What will happen if you use the wrong semicolon in front of the fancy back without adding a semicolon

Whether a semicolon is wrong or not, it may end up in a selector without adding a semicolon, which causes the preceding pattern to effect, which can also be said to be a css hack.

About "css style code with what to separate the end" this article is shared here, I hope the above content can be of some help to everyone, so that you can learn more knowledge, if you think the article is good, please share it to let more people see.

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

  • How to realize css two-column layout based on BFC rules

    This article will explain in detail how to achieve the two-column layout of css based on BFC rules. The editor thinks it is very practical, so I share it with you as a reference. I hope you can get something after reading this article.

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

    12
    Report