|
@@ -28,7 +28,7 @@
|
|
height: 50px;
|
|
height: 50px;
|
|
background: red;
|
|
background: red;
|
|
|
|
|
|
- /* 字体相关属性 */
|
|
|
|
|
|
+ /* 字体相关属性 */
|
|
/* 字体大小 最小12px 默认大小16*/
|
|
/* 字体大小 最小12px 默认大小16*/
|
|
font-size:25px;
|
|
font-size:25px;
|
|
/* 字体粗细 100 -900 默认值400|normal bold|700 */
|
|
/* 字体粗细 100 -900 默认值400|normal bold|700 */
|
|
@@ -38,8 +38,22 @@
|
|
/* 样式 风格 italic|normal */
|
|
/* 样式 风格 italic|normal */
|
|
font-style: normal;
|
|
font-style: normal;
|
|
|
|
|
|
|
|
+ /* 文本相关样式 */
|
|
|
|
+ /* 水平对齐:left左|center中|right右 */
|
|
|
|
+ text-align:left ;
|
|
|
|
+ /* 垂直对齐方式 行高(line-height)=高 实现文本的垂直居中*/
|
|
|
|
+ line-height:50px ;
|
|
|
|
+ /* 文本缩进 */
|
|
|
|
+ text-indent:20px ;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ a{
|
|
|
|
+ /* 文本修饰 none没有| line-through中划线 |underline下划线| overline上划线(不使用) */
|
|
|
|
+ text-decoration:overline;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
|
|
|
|
|
|
</style>
|
|
</style>
|
|
@@ -48,7 +62,7 @@
|
|
<body>
|
|
<body>
|
|
<!-- <div id="div1">1111111</div> -->
|
|
<!-- <div id="div1">1111111</div> -->
|
|
<div id="div2">我是一个DIV</div>
|
|
<div id="div2">我是一个DIV</div>
|
|
-
|
|
|
|
|
|
+ <a href="#">baidu </a>
|
|
|
|
|
|
</body>
|
|
</body>
|
|
|
|
|