[code="html"]
<br> .demo{<br> text-overflow:clip;<br> width:100px;<br> height:100px;<br> overflow:hidden;<br> border:1px solid red;<br> white-space:nowrap;<br> }<br>
哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈
[/code]
div设置了text-overflow属性,它的内容像素大于div的宽度,选中div中的文字,怎么获得文字的像素?