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

Case Analysis of global.css Common style template

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

Share

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

Today, the editor will share with you the relevant knowledge points of global.css public style template example analysis, the content is detailed, the logic is clear, I believe most people still know too much about this knowledge, so share this article for your reference, I hope you can get something after reading this article, let's take a look at it.

The CSS file is named global.css. Generally, this CSS file is used to install the CSS style code and initialization CSS style of the main frame of the station.

"global" is translated as global, all. From the translation, we can also understand what global.css is used for. Large stations are often used to install CSS style selectors common to all stations.

The CSS styles that can be called repeatedly by the whole station are put into this CSS file, which can save the style code, specification and facilitate call identification. At the same time, when you modify the same place of the whole station in the future, because the style of the public part of the whole station is concentrated in this global.css file, you can modify the layout of the whole station by modifying the CSS style in this file, which saves time and facilitates management.

The initialization CSS code is usually placed as follows:

Body, div, ul, ol, dl, dt, dd, li, dl, h2, h3, h4, h5

{margin:0;padding:0;font-style:normal;font:12px/22px "\ 5B8B\ 4F53", Arial, Helvetica,sans-serif}

Ol, ul, li {list-style: none;}

Img {border: 0; vertical-align:middle;}

Body {color:#000000;background:#FFF; text-align:center;}

.clear {clear:both;height:1px;width:100%; overflow:hidden; margin-top:-1px;}

A {color:#000000;text-decoration:none;}

A:hover {color:#BA2636;text-decoration:underline;}

These are all the contents of the article "global.css Common style template example Analysis". Thank you for reading! I believe you will gain a lot after reading this article. The editor will update different knowledge for you every day. If you want to learn more knowledge, please pay attention to 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