zoukankan      html  css  js  c++  java
  • 02-CSS基础与进阶-day4_2018-08-31-20-42-09

    css
    文字阴影(css3)
    text-shadow: 水平位置 垂直位置 模糊距离 阴影颜色

    层叠性
    1 含义 多种css样式叠加,浏览器处理冲突的一种能力
    2 原则 一般情况下,若出现样式冲突,会按照CSS书写的顺序 以最后的为准,样式不冲突,不会层叠
    继承性
    一般文本颜色和字号,font-开头的属性,text-开头的属性、line-开头的,color可以被继承

    02text-decoration属性.html

    <!DOCTYPE html>
    <html lang="en">
    <head>
        <meta charset="UTF-8">
        <title>Document</title>
         <style type="text/css">
           a {
                  text-decoration: none;
           }
    
           p {
               /*line-through中划线 overline上划线 uderline下划线*/
                  text-decoration: overline;
           }
         </style>
    </head>
    <body>
        <a href="#">百度</a>
        <p>11111</p>
    </body>
    </html>

     03css层叠性.html

     

    <!DOCTYPE html>
    <html lang="en">
    <head>
        <meta charset="UTF-8">
        <title>Document</title>
        <style type="text/css">
           
    
           div {
                 color: red;
           }
    
           div {
                 color: yellowgreen;
                 font-size: 12px;
           }
    
           /*
             div {
                color: yellowgreen;
                   font-size: 12px;
                   color: red;
             }
           */
        </style>
    </head>
    <body>
        <div>王者农药</div>
    </body>
    </html>

     04css继承性.html

    <!DOCTYPE html>
    <html lang="en">
    <head>
        <meta charset="UTF-8">
        <title>Document</title>
        <style type="text/css">
            body {
                font-size: 14px;
                color: red;
                font-size: 20px;
                font-weight: 700;
            }
        </style>
    </head>
    <body>
        <div>
            <p>我是王思聪</p>
        </div>
    </body>
    </html>
  • 相关阅读:
    php 字符串
    iOS copy&mutableCopy理解
    Swift学习(二)
    Swift 学习一函数&函数属性&懒加载
    LICEcap GIF 屏幕录制工具
    UIApplication介绍
    进度条渐变色
    -(UIView *)hitTest:(CGPoint)point withEvent:(UIEvent *)event
    DedeCms 5.7友情链接模块注入漏洞
    phpcms v9会员中心文件上传漏洞
  • 原文地址:https://www.cnblogs.com/HiJackykun/p/11047053.html
Copyright © 2011-2022 走看看