12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697 |
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <meta charset="UTF-8">
- <meta http-equiv="X-UA-Compatible" content="IE=edge">
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
- <title>Document</title>
- <style>
- #div1{
- }
- p{
- }
- .aa{
- }
- #ul1 li{
- }
- /* 子代 */
- #ul1 > li{
- }
- a:hover{
- }
- *{
- }
- /* style > id >class > 标签 */
- /* 基础样式 */
- div{
- width:200px;
- height:200px;
- background: red url(xx.jpg) no-repeat 0 0;
- /* 字体 */
- font-size: 16px;
- font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
- font-weight: 400;
- font-style: italic;
- color:green;
- /* 文本 */
- /* 1水平对齐 */
- text-align: left;
- height: 50px;
- /* 2单行文本垂直对齐 */
- line-height:50px ;
- /* 文本修饰 underline none line-through */
- text-decoration: none;
- }
- ul{
- list-style: none;
- }
- /* display */
- /* display:
- inline 行级元素 多个占一行 不能设置宽高
- span a strong i
- block 块级元素 自己占一行 可以设置宽高
- div p ul li h1-h6
- inline-block 行级块元素 多个占一行 可以设置宽高
-
- none 隐藏
- */
- /* 浮动 */
- /* float:left |right |none */
-
- /* 盒模型 */
- </style>
- </head>
- <body>
-
- </body>
- </html>
|