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 properties of CSS1 and CSS2

2025-03-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

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

This article mainly introduces what common attributes CSS1 and CSS2 have, which can be used for reference by interested friends. I hope you can learn a lot after reading this article.

Background sets all the background properties in a declaration.

Background-attachment sets whether the background image is fixed or scrolled along with the rest of the page.

Background-color sets the background color of the element.

Background-image sets the background image of the element.

Background-position sets the start position of the background image.

Background-repeat sets whether and how to repeat the background image.

Border sets all border properties in a declaration.

Border-bottom sets all the following border properties in a declaration.

Border-bottom-color sets the color of the lower border.

Border-bottom-style sets the style of the bottom border.

Border-bottom-width sets the width of the lower border.

Border-color sets the color of the four borders.

Border-left sets all left box properties in a declaration.

Border-left-color sets the color of the left border.

Border-left-style sets the style of the left border.

Border-left-width sets the width of the left border.

Border-right sets all the right-hand box properties in a declaration.

Border-right-color sets the color of the right border.

Border-right-style sets the style of the right border.

Border-right-width sets the width of the right border.

Border-style sets the style of the four borders.

Border-top sets all the top border properties in a declaration.

Border-top-color sets the color of the top border.

Border-top-style sets the style of the top border.

Border-top-width sets the width of the top border.

Border-width sets the width of the four borders.

Outline sets all the profile properties in a declaration.

Outline-color sets the color of the outline.

Outline-style sets the style of the outline.

Outline-width sets the width of the outline.

Height sets the element height.

Max-height sets the maximum height of the element.

Max-width sets the maximum width of the element.

Min-height sets the minimum height of the element.

Min-width sets the minimum width of the element.

Width sets the width of the element.

Font sets all font properties in one declaration.

Font-family specifies the font family of the text.

Font-size specifies the font size of the text.

Font-size-adjust specifies the aspect value for the element.

Font-stretch shrinks or stretches the current font family.

Font-style specifies the font style of the text.

Font-variant specifies whether to display text in a small uppercase font.

Font-weight specifies the thickness of the font.

Content is used with: before and: after pseudo elements to insert the generated content.

Counter-increment increments or decrements one or more counters.

Counter-reset creates or resets one or more counters.

Quotes sets the quotation mark type of nested references.

List-style sets all list properties in a declaration.

List-style-image sets the image to the list item tag.

List-style-position sets the location of the list item tag.

List-style-type sets the type of list item tag.

Margin sets all the outer margin properties in a declaration.

Margin-bottom sets the bottom margin of the element.

Margin-left sets the left margin of the element.

Margin-right sets the right margin of the element.

Margin-top sets the top and outer margins of the element.

Padding sets all the inner margins properties in a declaration.

Padding-bottom sets the bottom inner margin of the element.

Padding-left sets the left inner margin of the element.

Padding-right sets the right inner margin of the element.

Padding-top sets the upper inner margin of the element.

Bottom sets the offset between the lower margin boundary of the positioning element and the lower boundary of its containing block.

Clear specifies which side of the element does not allow other floating elements.

Clip clips absolute positioning elements.

Cursor specifies the type (shape) of the cursor to display.

Display specifies the type of box that the element should generate.

Float specifies whether the box should float.

Left sets the offset between the left margin boundary of the positioning element and the left boundary of its containing block.

Overflow specifies what happens when the content overflows the element box.

Position specifies the positioning type of the element.

Right sets the offset between the right outer margin boundary of the positioning element and the right boundary of its containing block.

Top sets the offset between the upper outer margin boundary of the positioning element and the upper boundary of its containing block.

Vertical-align sets the vertical alignment of elements.

Visibility specifies whether the element is visible.

Z-index sets the stacking order of elements.

Orphans sets the minimum number of rows that must be retained at the bottom of the page when paging occurs within the element.

Page-break-after sets the paging behavior after the element.

Page-break-before sets the paging behavior before the element.

Page-break-inside sets the paging behavior within the element.

Widows sets the minimum number of rows that must be retained at the top of the page when paging occurs within the element.

Border-collapse specifies whether to merge table borders.

Border-spacing specifies the distance between the borders of adjacent cells.

Caption-side specifies the location of the table title.

Empty-cells specifies whether to display borders and backgrounds on empty cells in the table.

Table-layout sets the layout algorithm used for the table.

Color sets the color of the text.

Direction specifies the direction of the text / direction of writing.

Letter-spacing sets character spacing.

Line-height sets the row height.

Text-align specifies the horizontal alignment of the text.

Text-decoration specifies the decorative effect that is added to the text.

Text-indent specifies the indentation of the first line of the text block.

Text-shadow specifies the shadow effect that is added to the text.

Text-transform controls the case of text.

Unicode-bidi sets the text orientation.

White-space specifies how to handle whitespace in an element.

Word-spacing sets word spacing.

Thank you for reading this article carefully. I hope the article "what are the common properties of CSS1 and CSS2" shared by the editor will be helpful to you? at the same time, I also hope you can 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

Wechat

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

12
Report