本文介绍了有关与CSS3特定梯度问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我不知道如何准确短语这个问题,所以也许这就是为什么我找不到这方面的帮助。

I am not sure how to exactly phrase this question so maybe that's why I can't find help with this.

我编码的网页和设计者已提出它的一部分的背景。这有点双向梯度:横向和纵向的同时。我在这里附上图片,因为我不知道怎么解释。

I am coding a webpage and the designer has made a background for a part of it. It's sort of a two way gradient: both horizontal and vertical at the same time. I am attaching the image here because I'm not sure how to explain it.

我很抱歉,如果这是非常明显的,但我找不到任何类似这样的任何地方。谢谢!
以下是图像:

I'm sorry if it's very obvious but I can't find anything resembling this anywhere. Thank you!Here's the image:

编辑:现在的问题是,我可以只使用CSS3这样的背景?
谢谢!

The question is, can I make this background using just CSS3?Thanks!

推荐答案

您能够支持浏览器限制,支持多背景的浏览器?

Are you able to limit browser support to browsers that support multiple backgrounds?

如果是这样,你可以创建两个梯度,与边框一起,来模拟。

If so, you can create two gradients, along with a border, to simulate that.

下面是只能在火狐版本:

您可以修改WebKit和其他线路得到它在其他浏览器的工作。我用来建立梯度较小。

You can modify the webkit and other lines to get it working in other browsers. I used the Ultimate CSS Gradient Generator to build the lower gradient.

下面是href=\"http://caniuse.com/#feat=multibackgrounds\" rel=\"nofollow\">多个后台支持的好房源一

Here's a good listing of multiple background support.

(编辑:!我的意思是只适用于Firefox,IE不DOH)
*(EDIT2:增加了多个后台支持上市)*

( I meant only works in Firefox, not IE. Doh!)*( Added multiple background support listing)*

这篇关于有关与CSS3特定梯度问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-16 05:14