开发者

Any way to fix CSS3 content attribute flicker in Chrome?

I've created a page where I use this type of styling:

开发者_JAVA技巧
nav ul li:before {
  content: " / ";
}
nav ul li:last-child:before {
  content: "";
}

Where most of the time, I want a "/" before the li elements except on the last one.

The problem is that in Chrome (only as far as I know), I sometimes get a little flicker of the "/", even though it's not supposed to be there. It shows up for a moment and then disappears.

Anyone else seen this or worked around it?


I'd file a bug report against Webkit (if you can reproduce in a webkit nightly) or Chrome if it's only in Chrome.


try

nav ul li:not(:last-child):before {
  content: " / ";
}
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜