CSS字体样式和文本样式和边框样式

/*字体样式*/
#p1{font-family:微软雅黑, Arial,Times New Roman;
font-size: 50px;/*字体大小*/
font-weight: lighter/*bold加粗 lighter加细*/;
font-style: italic/*斜体*/;
color: crimson;
text-align: center;/*居中*/
}

/*文本样式*/
#p2{
text-decoration: underline;/*下划线*/
text-decoration: line-through;/*删除线*/
text-decoration: overline;/*顶划线*/
text-transform:uppercase;/*全部大写*/
text-transform: lowercase;/*全部小写*/
text-transform: capitalize;/*首字母大写*/
text-indent: 2em;/*首行缩进 */ /*2em代表缩进两个字符 px代表缩进多少像素*/
line-height: 50px;
/*边框样式*/
border-bottom: 1px solid green;/*底线*/
border-top: 10px solid red;/*上边框*/
border-right: 15px solid yellow;
border-left: 20px solid gray;

}
a{
text-decoration: none;/*去除所有线*/

}

原文地址:https://www.cnblogs.com/longmingyeyu/p/12289195.html