隔壁外卖

第十六天

今天好好整理了一下对于css字体的修改方式。

<style type="text/css">
        *{font-weight:bold;}/*设置文字加粗*/
        .p1{
                color:rgb(255,0,0); /*设置颜色*/
                font-style:italic;/*设置文字斜体*/
                font-family:宋体
        }
        .p1{ font-size:12px    ;/*设置像素*/}

        .p2{ 
                 font-size:2em    ;/*设置像素*/
                 font-weight:normal;/*取消文字加粗*/
                 text-decoration:line-through;/*删除文字*/
                 text-transform:Capitalize;/*设置首字母为大写(小写lowercase大uppercase)*/
            }
        .p3{    
                border:1px solid red;
                width:500px;
                height:40px;
                line-height:40px;/*和height实现行内居中*/
                
            
        }
    </style>
    <script type="text/javascript"></script>
</head>
<body>
    <p class="p1">我叫吴彦祖</p>
    <p class="p2">test我叫吴彦祖</p>
    <div class="p3">此处省略一万个字
        </div>
</body>

 

posted on 2016-12-06 22:32  隔壁外卖  阅读(139)  评论(1编辑  收藏  举报

导航