zoukankan      html  css  js  c++  java
  • html基础知识(字体粗细/倾斜效果)

    <!DOCTYPE html>
    <html>
        <head>
            <meta charset="utf-8">
            <title></title>
            1.font-weight=  字体的粗细效果
                属性值有:
                    normal 默认展示的字体,不加粗
                    bold 加粗
                    number:100-500  默认展示的字体,不加粗  600-900  字体加粗
                    如下:
            2.font-style=字体倾斜
                    normal 默认字体不倾斜属性
                    italic 倾斜字体属性(标签带有倾斜属性才可以使用该属性)
                    oblique 倾斜字体属性(标签不带有倾斜属性才可以使用该属性)
                           
            <style>
                p{
                    /* font-weight:bold; */
                    font-weight: 600; 
                }
                h1{
                    /* font-style: italic; */
                    font-style: oblique;
                }
            </style>
        </head>
        <body>
            <p>字体加粗</p>
            <h1>字体倾斜</h1>
            <h2 style="text-decoration: overline;">上划线</h2>
            <h3 style="text-decoration: line-through;">删除线</h3>
            <a href="#" style="text-decoration: none;">取消下划线</a>
            <h4 style="text-decoration: underline;">下划线</h4>
            <h5 style="text-decoration: overline line-through underline;">添加上,下,删除线</h5>
        </body>
    </html>
  • 相关阅读:
    求1977!
    三进制小数
    回文数C语言
    JAVA知识点必看
    servlet HttpServletRequest
    为什么web工程要输入localhost或者是127.0.0.1
    service $sce or ng-bind-html
    jQuery的deferred对象详解
    理解promise
    理解Angular中的$apply()以及$digest()
  • 原文地址:https://www.cnblogs.com/wsx123/p/15738031.html
Copyright © 2011-2022 走看看