问答详情
源自:3-2 CSS3颜色 渐变色彩 

css3径向渐变怎么写呢

css3径向渐变怎么写呢   详细

提问者:liuyi刘燚 2016-05-08 14:32

个回答

  • 甜甜圈1991
    2017-01-16 16:05:54

    background: radial-gradient(#ace, #f96, #1E90FF);

    更多可点击查看: http://www.cnblogs.com/lhb25/archive/2013/02/24/css3-radial-gradient.html

  • 慕粉3219859
    2016-05-08 15:22:40

    radial-gradient();

  • qq_诺_6
    2016-05-08 15:02:25

    <!DOCTYPE html>

    <html>

    <head> 

    <meta charset="utf-8">

    <title>Gradient</title>

    <style type="text/css">


    p {

      width: 400px;

      height: 150px;

      line-height: 150px;

      text-align:center;

      color: #000;

      font-size:24px;

      background-image:radial-gradient(circle closest-side, red, orange,yellow,green,blue,indigo,violet);

    </style>

    </head> 

    <body>

      <p>右下角向左上角的线性渐变背景</p>

    </body>

    </html>