Internet Explorer 中的对角渐变
I want to use a diagonal gradient in my background.
I have read this, and I found that it has just only horizontal gradient and vertical gradient in IE.
Is it possible to make the gradient in IE show in the diagonal like Firefox?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您可以使用 CSS 来完成此操作,但它是一种涉及两层的混合解决方案。您可以此处了解其详细信息。
You can do it using CSS, but it's kind of a hacked together solution involving two layers. You can read about the details of it here.
是的,您必须使用
background-image
,因此元素大小可能会受到限制,具体取决于您希望页面花费多少,并且您需要使用单独的图像。HTML5 带来了 SVG 图像,但它们是可扩展的并且占用的空间很小。
Yes, you have to use a
background-image
though so there may be a limited element size depending on how much you want a page to cost, and you will need to use a separate image.HTML5 brings along SVG images though which are scalable and take up little space.