Home > Web Front-end > HTML Tutorial > Comprehensive list of commonly used attributes of DIV organized by yourself_HTML/Xhtml_Web page production

Comprehensive list of commonly used attributes of DIV organized by yourself_HTML/Xhtml_Web page production

WBOY
Release: 2016-05-16 16:39:45
Original
1425 people have browsed it
1. Attribute list

Copy code
The code is as follows:

color: #999999 Text color
font-family: Song style font
font-size: 10pt Text size
font-style:itelic Text italic style
font-variant:small-caps small Font
letter-spacing: 1pt Text spacing
line-height: 200% Set line height
font-weight:bold Text bold
vertical-align:sub Subscript
vertical -align:super Superscript
text-decoration:line-through Add ?h to divide line
text-decoration:overline Add top line
text-decoration:underline Add underline
text-decoration: none ?hExcept for connecting the bottom line
text-transform: capitalize The first word is capitalized
text-transform: uppercase English capitalization
text-transform: lowercase English writing
text-align:right Text * right-aligned
text-align:left text*left alignment
text-align:center text center alignment
These are some simple text effects that can be applied to CSS pages.
Background
background-color: black Background color
background-image: url(image/bg.gif) Background image
background-attachment: fixed Fixed background
background-repeat: repeat Repeat Arrangement - webpage default
background-repeat: no-repeat non-repeat arrangement
background-repeat: repeat-x repeats the arrangement on the x-axis
background-repeat: repeat-y repeats the arrangement on the y-axis
background-position: 90% 90% The position of the x and y axes of the background image
Link
A All hyperlinks
A:link Hyperlink text format
A:visited Browsed link text format
A:active Press the connection format
A:hover Move the mouse to the connection
Border
border-top: 1px solid black upper frame
border-bottom: 1px solid #6699cc lower frame
border-left : 1px solid #6699cc Left border
border-right : 1px solid #6699cc Right border
border: 1px solid #6699cc Four borders
Dotted line