zoukankan      html  css  js  c++  java
  • CSS的各种重要属性

    CSS属性图

    01文字属性

    <!DOCTYPE html>

    <html lang="en">

    <head>

        <meta charset="UTF-8">

        <title>文字属性</title>

        <style>

            p{

                font-style: italic;

                font-weight: bold;

                font-size: 10px;

                font-family:"楷体";

            }

        </style>

    </head>

    <body>

    <!--

    02字体属性补充

    <!DOCTYPE html>

    <html lang="en">

    <head>

        <meta charset="UTF-8">

        <title>字体属性补充</title>

        <style>

            p{

                /*

                被注释掉的内容

                */

                /*font-family:"乱七八糟的字体", "微软雅黑";*/

                /*font-family: Arial, "微软雅黑";*/

                font-family:"Microsoft YaHei";

            }

        </style>

    </head>

    <body>

    03-文字属性的缩写

    <!DOCTYPE html>

    <html lang="en">

    <head>

        <meta charset="UTF-8">

        <title>文字属性的缩写</title>

        <style>

            p{

                /*

                font-style: italic;

                font-weight: bold;

                font-size: 10px;

                font-family:"楷体";

                */

                font:bold italic 10px "楷体";

            }

        </style>

    </head>

    <body>

    <!--

    04-文本属性

    <!DOCTYPE html>

    <html lang="en">

    <head>

        <meta charset="UTF-8">

        <title>文本属性</title>

        <style>

            p{

                text-decoration: none;

                text-align: left;

                text-indent: 2em;

            }

            a{

                text-decoration: none;

            }

        </style>

    </head>

    <body>

    <!--

    05-颜色属性

    <!DOCTYPE html>

    <html lang="en">

    <head>

        <meta charset="UTF-8">

        <title>颜色属性</title>

        <style>

            p{

                /*color: red;*/

                /*color: rgb(255,0,0);*/

                /*color: rgba(255,0,0,1);*/

                color: #FF0000;

                color: #F00;

                /*color: rgba(255,0,0,0.2);*/

                color: #ffee00;

                color: #fe0;

                color: #769abb;

            }

        </style>

    </head>

    <body>

    <!--

     关注微信公众号

          更多好内容

          如果你觉得我的文章对你有帮助,请支持我,你的支持是我最大的动力 

  • 相关阅读:
    Flask学习笔记(3)-数据库迁移
    windows脚本批处理传输文件到linux脚本
    @TableLogic表逻辑处理注解(逻辑删除)
    使用thumbnailator给图片加水印
    Spring Cloud Stream 使用延迟消息实现定时任务(RabbitMQ)
    centos修改时区,同步时间
    定时清理缓存
    redis基本命令
    运行jar包shell脚本
    硬盘扩容后,建立新分区,将已有的目录挂载到新分区下
  • 原文地址:https://www.cnblogs.com/XieMinQiang/p/6025960.html
Copyright © 2011-2022 走看看