兼容ie8的纯css图标制作

css3确实是个好东西,可以用纯css3制作许多好看的图标

可是国内还有好多ie8的用户,要知道ie9对css3都支持的不怎么样,ie8几乎不支持。。。


so 特发此文,讲解如何制作兼容ie8的纯css图标,点击下面教学链接,有详细的解释:


进入后点下一步就好了
顺便献上该图标的纯svg版本,还有动画效果哦~~,自己手动建立html,复制下列代码到body里面:
  <svg width='200' height='200' style="font-size:40px;border:0.15em dashed #fff;border-radius: 0.5em;background-color: #222222;">
    <path d="M20 60L100 140L180 60Z" fill="#FF0033">
      <animate attributeName='fill' attributeType="auto" begin="0s" dur="2.3s" from="#222222" to="#222222"/>
      <animate attributeName='fill' attributeType="auto" begin="2.3s" dur='0.3s' from="#222222" to="#FF0033"></animate>
    </path>
    <path d="M20 140L60 100L140 100L180 140Z" fill="#FF0033">
      <animate attributeName='fill' attributeType="auto" begin="0s" dur='0.3s' from="#222222" to="#FF0033"></animate>
      <animateMotion path="M0 0L0 -80" begin="1.3s" dur="1s" fill="freeze"/>
    </path>
    <path d="M20 140L20 20L180 20L180 140L140 100L140 60L60 60L60 100Z" fill="#222222">
      <animate attributeName='fill' attributeType="auto" begin="0s" dur='0.3s' from="#222222" to="#FF0033"></animate>
      <animate attributeName='fill' attributeType="auto" begin="0.3s" dur='1s' from="#FF0033" to="#222222"></animate>
      <animateMotion path="M0 0L0 -80" begin="1.3s" dur="1s" fill="freeze"/>
    </path>
    <text style="font: 800 300% Georgia, serif;" x='68' y='105' fill='#FFCC00'>
      S
      <animate attributeName='opacity' attributeType="CSS" begin="0s" dur="2.6s" from="0" to="0"/>
    </text>
  </svg>

csdn的博客限制还真是多。。。我把上面的svg嵌在页面上想直接让它显示的。。可是svg直接被过滤掉了。。。之前嵌入js脚本也被过滤掉了,真蛋疼,只好把各种资料做成外部链接或是直接展示源码了。。。。一点都不直观。。。
  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值