已弃用的 CSS 属性列表

发布于 2024-11-16 04:47:18 字数 94 浏览 3 评论 0 原文

是否有已弃用的 CSS 属性列表?我的朋友告诉我 min-height 已弃用,我想确保我没有使用任何其他已弃用的属性。另外,我想验证一下是否属实。

Is there a list of CSS properties that are deprecated? My friend is telling me that min-height is deprecated and I want to be sure that I'm not using any other deprecated property. Also, I want to check if it is true.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(6

望笑 2024-11-23 04:47:18

据我所知, min-height 属性并未被弃用,可以正常使用。有关 CSS 属性及其与各种浏览器的兼容性的优秀列表,请尝试此网站

根据我上面链接到的网站,除了 Internet Explorer 6 之外,每个主要浏览器都完全支持 min-height 属性(其中仅在应用于 td 时才支持)元素)。

As far as I'm aware the min-height property is not deprecated and can be used as normal. For an excellent list of CSS properties and their compatibility with various browsers, try this site.

According to the site I linked to above, the min-height property is fully supported by every major browser except Internet Explorer 6 (in which it is only supported when applied to td elements).

反目相谮 2024-11-23 04:47:18

如果已弃用实际上意味着旧版浏览器不支持它,而不是新版浏览器,那么是的。

有许多不同的 CSS 属性仅适用于较新的浏览器,因为它们是 CSS3 的一部分。但与 html 不同的是,css 并没有任何已弃用 的属性,除非您考虑到 css 表达式和其他本来就不应该存在的 IE 垃圾。

If by deprecated he actually means that it isn't supported by older browsers instead of newer, then yes.

There are a lot of different CSS attributes which are only available for newer browsers as they are part of CSS3. But unlike html, css doesn't really have any deprecated attributes, unless you take into account css expressions and other IE crap that should have never been there to begin with.

风筝在阴天搁浅。 2024-11-23 04:47:18

min-height 并未被弃用。尝试谷歌...

min-height is not deprecated. Try Google...

像你 2024-11-23 04:47:18

我不知道 min-height 已被弃用。自 IE6 以来,所有浏览器都完全支持它...

I wasn't aware that min-height was deprecated. It's fully supported by every browser since IE6...

束缚m 2024-11-23 04:47:18

最佳查看位置是 RFC。然后你需要查看每个浏览器决定支持或不支持什么(w3schools 有一个很好的列表,尽管不确定它是否 100% 完整)
此搜索也带来了一些结果。

BEST place to look is the RFCs. And then you need to see for each browsers what he decides to support or not (w3schools has a nice list, although not sure it is 100% complete)
This search also brings some results.

饭团 2024-11-23 04:47:18

在为 this stylelint 插件创建“无过时”规则时,有是需要收集所有已弃用的 CSS at 规则、属性和值。

At规则:

@apply
@document
@viewport

属性:

box-align
box-direction
box-flex
box-flex-group
box-lines
box-ordinal-group
box-orient
box-pack
clip
grid-column-gap
grid-gap
grid-row-gap
ime-mode
page-break-after
page-break-before
scroll-snap-coordinate
scroll-snap-destination
scroll-snap-points-x
scroll-snap-points-y
scroll-snap-type-x
scroll-snap-type-y
user-modify

属性值:

box-sizing: padding-box;
image-orientation: flip;
image-rendering: optimizeQuality;
image-rendering: optimizeSpeed;
text-decoration: blink;
text-decoration-line: blink;
word-break: break-word;

While creating a "no-obsolete" rule for this stylelint plugin, there was the need to gather all deprecated CSS at-rules, properties and values.

At-Rules:

@apply
@document
@viewport

Properties:

box-align
box-direction
box-flex
box-flex-group
box-lines
box-ordinal-group
box-orient
box-pack
clip
grid-column-gap
grid-gap
grid-row-gap
ime-mode
page-break-after
page-break-before
scroll-snap-coordinate
scroll-snap-destination
scroll-snap-points-x
scroll-snap-points-y
scroll-snap-type-x
scroll-snap-type-y
user-modify

Property Values:

box-sizing: padding-box;
image-orientation: flip;
image-rendering: optimizeQuality;
image-rendering: optimizeSpeed;
text-decoration: blink;
text-decoration-line: blink;
word-break: break-word;
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文