是否可以编写一个 css 选择器,仅选择已调用文本溢出行为的元素?
<div style="width: 200px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis">
I don't want to select this
</div>
<div style="width: 200px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis">
But I do want to select this because it's overflowing
</div>
Fiddle http://jsfiddle.net/a7UNJ/
不,没有 CSS 选择器可以用来选择发生溢出的元素。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)