是否可以仅使用 CSS 属性来编辑文本内容?
我被迫使用一个有太多分散注意力的元素的网站,并且我正在尝试使用自定义 CSS 来调整它。我偶然发现了这个精彩的导航链接:
______Link#1__________
______Link#2__________
Can I remove those _'s only by using CSS properties that current work inlatest stable version of FF?
I'm forced to use a website that had too many distracting elements and I'm trying to adjust it using custom CSS. I stumbled upon this wonderful navigation links:
______Link#1__________
______Link#2__________
Can I remove those _'s only by using CSS properties that currently work in latest stable version of FF?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
如果链接的宽度相似,您可以通过溢出将有问题的下划线隐藏在视图之外:隐藏:
如果它们确实具有不同的宽度,您可以通过第n个类型选择器单独定位每个链接...
这是一个有趣的挑战, 祝你好运!
http://jsfiddle.net/F24rh/
If the links are similar in width, you could hide the offending underscores out of view through overflow: hidden:
If they do have different widths, you could target each one individually through the nth-of-type selector...
It's an interesting challenge, good luck!
http://jsfiddle.net/F24rh/
不;目前,您只能使用 CSS 在元素之前和之后添加文本(甚至这种支持也是有限的)。
要执行您正在尝试的操作,请考虑编写一个 Greasemonkey 脚本。
No; You can currently only add text before and after elements using CSS (and even that support is limited).
To do what you're attempting, consider writing a Greasemonkey script.