zoukankan      html  css  js  c++  java
  • html5-css选择器

    /*/**{color: red}
    p{color: green}
    #div1{background: blue;padding-top: 15px;}
    .kk{background: blue;border: 5px red solid}
    h3.kk{background: green}*/

    /*input[value]{background: green}
    input[value][style]{background:blue}
    input[value='vip1']{background: red}
    input[style~='10px']{background: gray}
    input[value^='vip']{background:green}
    a[href^="http"]{color: red}
    a[href$=".cn"]{color: green}
    input[value*="vip"]{background: red}
    ul li{border: 1px red solid}
    ol li{border: 2px green solid}
    div p{color: red}
    ul >li{border: 1px red solid}
    h2+p{color: green}
    h2~p{color: red}
    div,ul{color: red}
    p::first-letter{font-size: 50px;}
    p::first-line{color: green}
    a::before{
        content: "点击"
    }
    a::after{
        content: "行吗"
    }
    a::after{
        content: url(../pic/1.png);
    }
    p::selection{color: red}
    p::selection{background: red}
    :root{color: red}
    li:first-child{color: red}
    ul>li:first-child{color: red}
    ul>li:last-child{color: red}
    li:last-child{color: red}
    li:only-child{color: blue}
    p:only-of-type{color: red}
    h3:nth-child(2){color: red}
    #div1>h3:nth-child(2){color: red}
    tr:nth-child(even){background: red}
    tr:nth-child(odd){background: green}
    tr:nth-child(3n+1){background: green}
    tr:nth-last-child(3){background: red}
    p:first-of-type{color: red}
    p:last-of-type{color: red}
    p:nth-of-type(2){color: red}
    p:nth-last-of-type(2){color: red}
    div:empty{ 300px;height: 200px;background: green;}
    a:link{color: red}
    a:active{background: red}
    a:hover{background: blue}
    a:visited{color: gray}
    input:focus{background: red}
    input:checked{ 60px;height: 60px;}
    input:enabled{background: red}
    input:disabled{background: green}
    a:target{color: red}*/
    :not(input){color: green}

    天道酬勤,厚积薄发。 君子之行,静以修身,俭以养德。 非淡泊无以明志,非宁静无以致远。 如有恒,何须三更起,半夜眠;最怕莫,三天打鱼两天晒网,竹篮打水一场空。
  • 相关阅读:
    PBI REFRESH ERROR
    PTE
    Python
    Chromedriver下载地址
    python pip安装selenium时报错, ..has requirement websocket-client==0.48.0, but you'll have websocket -client 0.57.0 which is incoopatibale.
    在打开方式里只有wps,找不到默认的MS OFFICE办公PPT打开方式 解决方案
    POWER BI
    POWER BI
    [未解决]POWER BI
    POWER BI 生成日期表
  • 原文地址:https://www.cnblogs.com/houweidong/p/7553644.html
Copyright © 2011-2022 走看看