In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
This article focuses on "what are the commonly used attributes in CSS", interested friends may wish to have a look. The method introduced in this paper is simple, fast and practical. Now let the editor to take you to learn "what are the commonly used attributes in CSS"?
CSS refers to cascading stylesheets (Cascading Style Sheets). CSS describes how to display HTML elements on screen, paper, or other media, and CSS saves a lot of work. It can control the layout of multiple web pages at the same time, and external stylesheets are stored in CSS files.
Text attribute identifier function attribute value font-family: define the text type, search sequentially, first find the selected value, if you can not find it, use the default value of Song, boldface and other font- style: define font style. Normal (standard) italic (italic) oblique (tilt) font-variant: change the display of English letters normal,small-caps (small uppercase letters) font-weight: bold font normal (equivalent to 400), bold,lighter,bolder or nine digits of 100mm 900 font-size: define the font size of any number In pt (dot matrix), px (screen pixel) as the unit text attribute text-decoration: embellished text underline (underlined) overline (underlined) line-thought (plus delete line) text-align: where and how the text is displayed left,right,center,justify (aligned from left to right) Color attribute color: defines the font color 1. Use English words as keywords in hexadecimal 3. Use RGB value, usage: RGB (255jue 0 0) 0 background 255 background attribute background-color: define the usage of background color equal to "color attribute" background-image: define background image usage: body {background-image:url (bg.gif)} where "bg.jif" is any picture background-repeat: copy background repeat-x in different ways: copy repeat-y horizontally: copy background- vertically Fixed scroll of attachment background: background content scrolls with foreground fixed: background does not move background- position: defines background position top: background and foreground content top alignment bottom Left,right mode: xxpt xxpt or x% x% or left top (a combination of two English words, note: there is a space in the middle!) Boundary attribute margin- top: the default value of the upper boundary of the object is: 0 keyword: auto value: pt,px,in (inch), cm (centimeter) is the unit margin-right: the right boundary of the object is the same as above. Margin- bottom: the lower boundary of the object is the same as above. Margin-left: the left boundary of the object is the same as above. Concise form of boundary setting Note DIV {margin:10cm} all boundaries are 10cm DIV {margin:10cm 3cm} above and below 10cm, left and right 3cm DIV {margin:1cm 3cm 5cm 7cm} top is 1cm, right is 3cm, bottom is 5cm, and left is 7cm. At this point, I believe that you have a deeper understanding of "what are the commonly used attributes in CSS?" you might as well do it in practice. Here is the website, more related content can enter the relevant channels to inquire, follow us, continue 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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.