zoukankan      html  css  js  c++  java
  • 渐变linear-gradient

    示例代码:

    <!DOCTYPE html>
    <html lang="en">
    <head>
    <meta charset="UTF-8">
    <title>grandient</title>
    </head>
    <style type="text/css">
    .linear-grandient{
    600px;
    margin: 50px auto;
    text-align: center;
    background-color: rgba(12, 19, 17, 0.2);
    }
    .linear-grandient p{
    100px;
    height: 100px;
    line-height: 100px;
    float: left;
    margin-left: 150px;
    background-color: #f9f9f9;
    border: 1px #999999 solid;
    font-size: 20px;
    }
    .linear-grandient p:first-child{
    background: -webkit-linear-gradient(red,white,green);
    }
    .linear-grandient p:last-child{
    background: -webkit-linear-gradient(20deg,red,white,green);
    }
    </style>
    <body>
    <div class="linear-grandient">
    <p>普通渐变</p>
    <p>角度渐变</p>
    </div>
    </body>
    </html>

    效果图:

    
    
  • 相关阅读:
    c++ 容器学习 理论
    TCP和UDP发送数据包的大小问题
    key.go
    election.go
    watch.go
    txn.go
    sort.go
    retry.go
    op.go
    maintenance.go
  • 原文地址:https://www.cnblogs.com/cxxBoo/p/11368004.html
Copyright © 2011-2022 走看看