<p style="color: red; font-size: 40px;">段落</p>
<style> span{ color: aquamarine; } </style>
<style> @import "font_css.css"; </style>
<link rel="stylesheet" href="font_css.css">
1. font-family:字体,eg: microsoft-yahei 2. font-size/color:字号/颜色 3. font-weight:bold 粗体 4. font-style:italic 斜体 5. text-decoration:underline 下划线 6. text-decoration:line-through 删除线 7. text-indent:2em 缩进文字的2倍大小 8. line-height:1.5em 行间距: 1.5倍文字大小 9. letter-spacing:50px 字间距,字母间距 10.word-spacing:50px 单词与单词间距 11.text-align:center/left/right 居中/居左/居右 12.color:rgb(255,255,255); 参数是0-255的数,可自调颜色 13.backgroud-image:url("1.png"); 背景图 14.backgroud-repeat:repeat-y/repeat-x/no-repeat; 图片按列/行/角排 15.backgroud-position:right center/center center; 图片位置靠右居中 16.以上可缩写为: backgroud: red url("1.png") no-repeat center; 17.border:solid 1px red;边框属性 18.ul, ol{list-style: 。。。。}列表属性 19.display:block/inline/none; 内联和块级切换/隐藏
如对本文有疑问, 点击进行留言回复!!
网友评论