如何在 Opera 10.0 及更早版本中隐藏 CSS?

发布于 2024-09-30 06:52:12 字数 178 浏览 0 评论 0 原文

Opera 10.0 存在一些与 SVG 背景图像相关的错误。这些在 10.5 中已修复。

我想在 Opera 中使用 SVG 背景图像进行渐变,但对仍在 Opera 10.0 上的那些可怜的灵魂隐藏代码。

有谁知道任何 CSS hacks 或类似的方法可以从 Opera 10.0 及更早版本中隐藏 CSS?

Opera 10.0 has some bugs related to SVG background images. These are fixed in 10.5.

I’d like to use SVG background images for gradients in Opera, but hide the code from those poor souls still on Opera 10.0.

Does anyone know any CSS hacks or similar to hide CSS from Opera 10.0 and earlier?

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

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

发布评论

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

评论(1

农村范ル 2024-10-07 06:52:12

这里有一个答案:

面向 LTE Opera 10 的面向未来的 CSS hack

这段代码仅适用于 Opera >= 9.5 和 < 10.50:

@media all and (resolution = 0dpi) { // exclude Opera 10.50 and higher
  :root #box { // you need to append :root to all selectors to exclude Opera lt 9.5
    background: #f00;
  }
}

there is an answer here:

Future proof CSS hack for LTE Opera 10

this piece of code works only in Opera >= 9.5 and < 10.50:

@media all and (resolution = 0dpi) { // exclude Opera 10.50 and higher
  :root #box { // you need to append :root to all selectors to exclude Opera lt 9.5
    background: #f00;
  }
}
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文