1 / 14
文档名称:

css笔记(Css笔记).doc

格式:doc   大小:37KB   页数:14页
下载后只包含 1 个 DOC 格式的文档,没有任何的图纸或源代码,查看文件列表

如果您已付费下载过本站文档,您可以点这里二次下载

分享

预览

css笔记(Css笔记).doc

上传人:薇薇安 2021/5/12 文件大小:37 KB

下载得到文件列表

css笔记(Css笔记).doc

文档介绍

文档介绍:css笔记(Css笔记)
css笔记(Css笔记)
[CSS style sheet]
Defined format:
1, in the <head><style> CSS stylesheet </style></head>
2, create a new CSS file, write the CSS style sheet sequence in the file, and then in the page by <Link Href=, "", "Type=", "Text/CSS", "Stylesheet", "REL=" > this command to introduce CSS 
Style definition format:
1, label name {
The style property 1: value 1; 
The style property 2: value 2;
....
} 
* the label name here refers to the basic HTML element. 
For example, (P, table, div, span, DL, DD, DT, IMG, etc.)
2. Class name { 
The style property 1: value 1;
The style property 2: value 2;
....
}
* you can first specify which class the object will use, and then set the style to the class. 
When calling a style, you must use the class= class name
3, #ID name {
The style property 1: value 1; 
The style property 2: value 2; 
....
}
* you can first set the object using which ID, and then set the style to the ID.
When calling a style, you must use the form of the ID=ID name 
CSS style standard properties:
First, font modification related 
1, font sequence
Format: font-family: font sequence;
For example: font-family: bold, italics, arial;
2, font size
Format: font-size: font value;
For example: font-size:20px; / * * / font size of 20 pixels
Font-size:5in; / * * / font size 5 inches 
Font-size:12pt; / * * / font size of 12 pounds 
Font-size:5cm; / * * / font size 5 cm
Font-size:40mm; / * * / font size 40 mm
Font-size:150%; 150%*/ / * font size for the original size
Font-size:0.8em; 80%*/ / * font size for the original size
3, font bold
Format: font-weight: style;
For example: font-weight:bold; / * * /.
Font-weight:normal; / * * / as normal
4, font tilt
Format: font-style: style;
For example: font-style:italic; / * * / tilt
Font-style:normal; / * * / as normal
5, font size
Format: text-transform: style; 
For example: text-transform:uppercase; / * * / all caps