使用默认行为覆盖大写?
我正在使用 Thesis 主题开发一个 WordPress 网站。假设我有一个菜单项,“Foo is Bar”默认情况下,Thesis 中的导航样式为:
text-transform: uppercase;//FOO IS BAR
在我的自定义样式表中将其覆盖为:
text-transform: capitalize;//Foo Is Bar
这是接近的,但我想要的是要呈现的菜单项如“Foo is Bar”,以大小写混合开头字母书写。大写样式是主题的一部分,如果不需要,我宁愿不修改代码。有没有办法使用 :first-letter 伪类来消除大写样式?
非常感谢任何帮助。
I'm working on a Wordpress site using the Thesis theme. Say I have a menu item, "Foo is Bar" By default, the navigation in Thesis is styled with:
text-transform: uppercase;//FOO IS BAR
which is overwritten in my custom style-sheet to:
text-transform: capitalize;//Foo Is Bar
Which is close, but what I want, is the menu item to be rendered as "Foo is Bar" as written with mixed upper and lower case starting letters. The uppercase style is part of the Theme and I'd rather not modify the code if I don't have to. Is there a way to wipe out the uppercase style perhaps using the :first-letter pseudo class?
Any help greatly appreciated.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以将其设置回默认值:
You could set it back to the default: