模拟颜色在IE的渐变中停止 [英] Simulating color stops in gradients for IE

查看:113
本文介绍了模拟颜色在IE的渐变中停止的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想给一个div一个渐变与多个颜色停止,IE的过滤器属性不支持。任何人都有一个创造性的解决方法来模拟在IE的颜色停止?
我已经考虑过创建多个div彼此相邻...其他什么?

I want to give a div a gradient with multiple color-stops, which IE's filter property does not support. Anyone have a creative workaround to simulate the color stops in IE? I already thought of creating multiple divs right next to each other... anything else?

谢谢!

推荐答案

具有协调渐变颜色的多个div是创建3+个颜色渐变的最佳方式(短于使用图像)。请参阅下面的操作测试:

Multiple divs with coordinated gradient colors is the best way (short of using images) to create 3+ color gradients. See fiddle below for a working test:

http://jsfiddle.net/Hauhx/

这篇关于模拟颜色在IE的渐变中停止的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆