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 common terms of cascading style sheets in CSS

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

Share

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

Editor to share with you what the terms commonly used in CSS intermediate cascading stylesheets are, I believe most people do not know much about it, so share this article for your reference, I hope you will learn a lot after reading this article, let's learn about it!

Standard box model

1. Element classification

Block level element (block)

Div+css (both DIV and CSS are containers)

Are paragraph marks, block-level elements.

Inline element

Span, which does not respond to properties of the box model.

2. Standard flow

How the labels are arranged.

3. Box model

Put the element in the box

Outer margin (marjin) 4 (maximum value when two are together, no sum)

Inner margin (padding) 4

Content area (width and height)

Picture frame (border) 4

Styles can be written together.

4. Floating

Break away from the standard stream.

5. Positioning

Absolute: absolute deviates from the standard stream, absolutely for boxes that contain this element.

Relative: relative to the original position relative but not out of the standard stream

6. Setting of hyperlink style

A:link is the initial state of the hyperlink

A:hover is a hovering condition when the mouse is hovered.

A:active is when the mouse is clicked

A:visited is the situation after the visit.

7. CSS hack (for more information about CSS hack, please move to: http://baike.baidu.com/view/1119452.htm)

* 10pxidentify importance; / * only IE678 recognizes this rule * /

_ margin is recognized only by IE6.

While other core browsers can recognize! Important (higher priority)

Solve the IE gap problem: Margin-top:-2em let the outer frame up two e units of distance.

8. When loading cut images, you must have these three attributes.

Background-image

Background-position

Background-repeat: / * do not repeat * /

9. * Space represents the settings for all elements

These are all the contents of the article "what are the common terms for cascading stylesheets in CSS?" 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