zoukankan      html  css  js  c++  java
  • 让我们的svg起飞,兼容ie9的神器

    <svg xmlns="http://www.w3.org/2000/svg" width="320px" height="200px" version="1.1">
        <defs>
            <linearGradient id="g1" x1="0%" y1="0%" x2="0%" y2="100%">
                <stop offset="0%" style="stop-color:rgb(140, 192, 32);stop-opacity:1" />
                <stop offset="100%" style="stop-color:rgb(70, 150, 43);stop-opacity:1" />
            </linearGradient>
            <linearGradient id="g2" x1="0%" y1="0%" x2="0%" y2="100%">
                <stop offset="0%" style="stop-color:rgb(70, 150, 43);stop-opacity:1" />
                <stop offset="100%" style="stop-color:rgb(0, 108, 53);stop-opacity:1" />
            </linearGradient>
        </defs>
        <text x="50%" y="144" fill="red" text-anchor="middle" style="fill: url(#g1);font-size: 20px;font-family:'Microsoft Yahei'; font-weight: bolder;">空港新城站</text>
        <text x="50%" y="165" fill="red" text-anchor="middle" style="fill: url(#g2);font-size: 18px;font-family:'Microsoft Yahei'; font-weight: bolder;">敬请期待</text>
    </svg>
    

    Alt text

  • 相关阅读:
    SSH框架中使用注解和xml配置的区别
    web项目中log4j的配置
    嵌入式—ASCII码
    MATLAB
    MATLAB
    MATLAB
    MATLAB
    CentOS 7将网卡名称eno16777736改为eth0
    图像增强处理
    Debussy与modelsim联仿时 do 文件脚本
  • 原文地址:https://www.cnblogs.com/Silababy/p/6027002.html
Copyright © 2011-2022 走看看