CSS 样式练习笔记
个人博客 CSS 基础属性练习,仅保留常用属性,修复代码错误,样式示例写在注释内
样式源码示例
文本基本
1 2 3 4 5 6 7 8 9 10 11 12 13
| <style> .h1{ text-align: center; color: burlywood; text-indent: 2em; text-decoration: solid; text-shadow: none; letter-spacing: normal; line-height: normal; vertical-align: text-top; word-spacing: normal; } </style>
|
列表
1 2 3 4 5 6
| <style> .ul{ list-style-type: square; list-style-position: inside; } </style>
|
字体
1 2 3 4 5 6 7 8
| <style> .font{ font-family: sans-serif; font-size: large; font-style: italic; font-weight: bolder; } </style>
|
超链接
1 2 3 4 5 6
| <style> a:link{color:blue;} a:visited{color: gray;} a:hover{text-decoration:line-through;} a:active{color: red;} </style>
|
文本示例
字体样式示例
默认
已访问
悬停
点击
```