【发布时间】:2014-09-10 10:54:44
【问题描述】:
在这个网站上:
http://c3.finearts.txstate.edu
我使用以下方式设置了右侧边栏导航的样式:
.sidenav a:after {
display: block;
position: relative;
z-index: 0;
top: -3.6em;
left: 0.15em;
width: 90%;
content: ".";
font-family: 'Ropa Sans', helvetica, arial, sans-serif !important;
font-size:1.5em;
padding-top:1em;
padding-bottom:1em;
padding-left:0.7em;
margin-bottom:1.16em;
background-color: rgba(51,50,48,0.9);
background-image: url('http://uweb.txstate.edu/~j_f166/codepen/images/notch.png');
background-position: top right;
background-repeat:no-repeat;
}
.sidenav a:nth-child(n+2) li{
margin-top: -4.4em;
}
在 Firefox 3.6.17 中呈现如下:
(加载只需要一点时间......我是这里的新手,所以我不能发布截图)。
虽然根据 caniuse 从 3.5 开始应该支持这些伪类。
更麻烦的是,我正在使用我们大学的内容管理系统。这是一个 Magnolia 系统。我 99% 肯定我无法更改头部以插入 javascript。
所以三个问题:
是否有我可以使用的 css 修复程序让这些伪类在这个和附近的 Firefox 版本中工作?
有 polyfill 吗?
如果是这样,鉴于我无法访问 html 头,我可以在哪里插入这样的 polyfill?
非常感谢。当然,我只是注意到了这一点(它没有出现在 BrowserShots 中,我只是在同事的机器上进行随机测试时偶然发现了它)。该网站将于明天在大学上线。
是的,
吉尔
【问题讨论】:
标签: css firefox css-selectors