Drupal Opera 条件样式表

发布于 2024-11-05 05:29:55 字数 451 浏览 5 评论 0原文

在我尝试为 Opera 浏览器添加自定义样式表时,我在主题 .info 文件中添加了以下行:

conditional-stylesheets[if Opera][all][] = style-opera.css

CSS 文件已上传到服务器,但未进行更改。

我尝试了更直接的路线,并将以下行添加到 page.tpl.php:

  {[if Opera]>

{link type="text/css" rel="stylesheet" media="all" href="/sites/all/themes/zen/zen_newbuild /style-opera.css?” /}

注意:我不得不故意省略 html 注释功能,以便代码在这里可见

仍然没有变化。

我做错了什么吗?

in my attempts to add a custom stylesheet for the Opera browser I added the followinf line in the theme .info file:

conditional-stylesheets[if Opera][all][] = style-opera.css

The CSS file is uploaded to the server but the changes did not take.

I attempted a more direct route and added the following line to page.tpl.php:

  {[if Opera]>

{link type="text/css" rel="stylesheet" media="all" href="/sites/all/themes/zen/zen_newbuild/style-opera.css?" /}

NOTE: I had to deliberately leave out the html comment features so the code is visible here

Still no change.

Am I doning something wrong?

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

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

发布评论

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

评论(1

不甘平庸 2024-11-12 05:29:55

条件注释是 IE 的一项功能。

但您会在这里找到您问题的很多答案:
Drupal 7 浏览器特定 css

...等

Conditional comments is a IE feature.

But you will find here a lot of answers for your question :
Drupal 7 Browser specific css

...etc

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文