zoukankan      html  css  js  c++  java
  • 为什么不用css3的 线性和放射性 因为没有svg的简介以及浏览器支持的多

    <svg xmlns="http://www.w3.org/2000/svg" width="100%" height="600px" version="1.1">
    <defs>
    <radialGradient id="radialGradient_r1" cx="50%" cy="50%" r="0%" fx="50%" fy="50%">
    <stop offset="0%" style="stop-color:red;stop-opacity:1"/>
    <stop offset="50%" style="stop-color:white;stop-opacity:1"/>
    <stop offset="100%" style="stop-color:black;stop-opacity:1"/>
    </radialGradient>
    </defs>
    <defs>
    <radialGradient id="radialGradient_r2" cx="50%" cy="50%" r="50%" fx="50%" fy="50%">
    <stop offset="0%" style="stop-color:red;stop-opacity:1"/>
    <stop offset="50%" style="stop-color:white;stop-opacity:1"/>
    <stop offset="100%" style="stop-color:black;stop-opacity:1"/>
    </radialGradient>
    </defs>
    <defs>
    <radialGradient id="radialGradient_r3" cx="50%" cy="50%" r="100%" fx="50%" fy="50%">
    <stop offset="0%" style="stop-color:red;stop-opacity:1"/>
    <stop offset="50%" style="stop-color:white;stop-opacity:1"/>
    <stop offset="100%" style="stop-color:black;stop-opacity:1"/>
    </radialGradient>
    </defs>
    <defs>
    <radialGradient id="radialGradient_c1" cx="0%" cy="50%" r="50%" fx="50%" fy="50%">
    <stop offset="0%" style="stop-color:red;stop-opacity:1"/>
    <stop offset="50%" style="stop-color:white;stop-opacity:1"/>
    <stop offset="100%" style="stop-color:black;stop-opacity:1"/>
    </radialGradient>
    </defs>
    <defs>
    <radialGradient id="radialGradient_c2" cx="50%" cy="50%" r="50%" fx="50%" fy="50%">
    <stop offset="0%" style="stop-color:red;stop-opacity:1"/>
    <stop offset="50%" style="stop-color:white;stop-opacity:1"/>
    <stop offset="100%" style="stop-color:black;stop-opacity:1"/>
    </radialGradient>
    </defs>
    <defs>
    <radialGradient id="radialGradient_c3" cx="100%" cy="50%" r="50%" fx="50%" fy="50%">
    <stop offset="0%" style="stop-color:red;stop-opacity:1"/>
    <stop offset="50%" style="stop-color:white;stop-opacity:1"/>
    <stop offset="100%" style="stop-color:black;stop-opacity:1"/>
    </radialGradient>
    </defs>
    <defs>
    <radialGradient id="radialGradient_f1" cx="50%" cy="50%" r="50%" fx="0%" fy="50%">
    <stop offset="0%" style="stop-color:red;stop-opacity:1"/>
    <stop offset="50%" style="stop-color:white;stop-opacity:1"/>
    <stop offset="100%" style="stop-color:black;stop-opacity:1"/>
    </radialGradient>
    </defs>
    <defs>
    <radialGradient id="radialGradient_f2" cx="50%" cy="50%" r="50%" fx="50%" fy="50%">
    <stop offset="0%" style="stop-color:red;stop-opacity:1"/>
    <stop offset="50%" style="stop-color:white;stop-opacity:1"/>
    <stop offset="100%" style="stop-color:black;stop-opacity:1"/>
    </radialGradient>
    </defs>
    <defs>
    <radialGradient id="radialGradient_f3" cx="50%" cy="50%" r="50%" fx="100%" fy="50%">
    <stop offset="0%" style="stop-color:red;stop-opacity:1"/>
    <stop offset="50%" style="stop-color:white;stop-opacity:1"/>
    <stop offset="100%" style="stop-color:black;stop-opacity:1"/>
    </radialGradient>
    </defs>
    <defs>
    <radialGradient id="grey_black" cx="50%" cy="50%" r="50%" fx="50%" fy="50%">
    <stop offset="0%" style="stop-color:white;stop-opacity:1"/>
    <stop offset="100%" style="stop-color:black;stop-opacity:1"/>
    </radialGradient>
    </defs>


    <ellipse cx="120" cy="120" rx="110" ry="100" style="fill:url(#grey_black)"/>
    <ellipse cx="120" cy="300" rx="100" ry="50" style="fill:url(#radialGradient_r1)"/>
    <ellipse cx="350" cy="300" rx="100" ry="50" style="fill:url(#radialGradient_r2)"/>
    <ellipse cx="580" cy="300" rx="100" ry="50" style="fill:url(#radialGradient_r3)"/>
    <ellipse cx="120" cy="420" rx="100" ry="50" style="fill:url(#radialGradient_c1)"/>
    <ellipse cx="350" cy="420" rx="100" ry="50" style="fill:url(#radialGradient_c2)"/>
    <ellipse cx="580" cy="420" rx="100" ry="50" style="fill:url(#radialGradient_c3)"/>
    <ellipse cx="120" cy="540" rx="100" ry="50" style="fill:url(#radialGradient_f1)"/>
    <ellipse cx="350" cy="540" rx="100" ry="50" style="fill:url(#radialGradient_f2)"/>
    <ellipse cx="580" cy="540" rx="100" ry="50" style="fill:url(#radialGradient_f3)"/>
    </svg>

  • 相关阅读:
    Eclipse OSBP 设置 配置
    限制文本框输入的内容
    jquery 操作iframe的几种方法总结
    利用PLUPLOAD上传大文件
    oracle contains
    JSON.parse
    js正则表达式replace里有变量的解决方法用到RegExp类
    Web API WinForm使用HttpClient呼叫Web API
    JQUERY DIALOG窗格内不能使用FORM
    Access forbidden! XAMPP虚拟主机的问题
  • 原文地址:https://www.cnblogs.com/luziluck/p/10256356.html
Copyright © 2011-2022 走看看