zoukankan      html  css  js  c++  java
  • 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;/*去除所有线*/

    }

  • 相关阅读:
    阅读
    做人做事、原则
    20150913HTML5心得
    动画-七夕言情
    20150818 句子
    网站链接备份
    javascript设计模式2
    javascript设计模式1
    sunlime操作
    node系列4
  • 原文地址:https://www.cnblogs.com/longmingyeyu/p/12289195.html
Copyright © 2011-2022 走看看