实验性CSS和老式浏览器 [英] Experimental CSS and old fashioned browsers

查看:69
本文介绍了实验性CSS和老式浏览器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用实验性CSS属性(例如 border-radius text-shadow ,<今天在布局中使用code> box-shadow 和 gradient ?那么 rgba()这样的值呢?

Is it a good idea to use experimental CSS-properties like border-radius, text-shadow, box-shadow and gradient in a layout today? And what about values like rgba()?

当我查看Web画廊时,这些CSS属性是经常使用的,并且根据 24ways.org 使用这些属性不是问题。

When I look at web galleries, these CSS-properties are frequently used and according to articles like on 24ways.org it is not a problem to use these properties.

您对此有何看法?

推荐答案

我说现在依赖绝对不是一个好主意。您可以使用它们,但是它们不能在许多浏览器中使用。

I would say it's a decidedly bad idea to depend on those properties right now. You can use them, but they won't work in many browsers.

在我的脑海中: border-radius 文本阴影框阴影 rgba 根本无法在IE中使用。 rgba的来源所有CSS属性的正式IE兼容性表

Off the top of my head: border-radius, text-shadow and box-shadow and rgba won't work in IE at all. Source for rgba, official IE compatibility table for all CSS properties

由于IE在浏览器市场中仍然占有显着的份额,因此忽略它是愚蠢的。

Since IE still holds a remarkable share in the browser market, it would be foolish to ignore it.

所有这些效果的好处是,仍然有可能创建一个与他们在一起看起来很棒的网站,而没有他们仍然很不错。唯一的例外可能是 rgba ,具体取决于您在其中使用的上下文。

The nice thing about all those effects is that it is still possible to create a site that looks great with them, and still decent without them. The only exception to that may be rgba depending on the context you use it in.

这篇关于实验性CSS和老式浏览器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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