Drupal Opera 条件样式表
在我尝试为 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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
条件注释是 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