您的位置:首页 > 其它

解决Firefox浏览器不支持text-overflow:ellipsis;的办法

2009-10-21 16:23 561 查看
解决Firefox浏览器不支持text-overflow:ellipsis;的办法

在CSS文件下加入firefox支持

.topic_textover{
width:150px;
overflow:hidden;
text-overflow:ellipsis;(for IE)

-moz-binding: url('ellipsis.xml#ellipsis');(for Firefox)
white-space:nowrap;
}

xml文件----ellipsis.xml

<?xml version="1.0"?>
<bindings xmlns="http://www.mozilla.org/xbl" xmlns:xbl="http://www.mozilla.org/xbl" xmlns:xul="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"><binding id="ellipsis"><content><xul:window><xul:description crop="end" xbl:inherits="value=xbl:text"><children/></xul:description></xul:window></content></binding></bindings>
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: