解决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>
在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>
相关文章推荐
- 关于firefox不支持text-overflow:ellipsis;的解决办法
- html,css-------关于firefox不支持text-overflow:ellipsis;的解决办法、、、、
- text-overflow:ellipsis溢出显示省略号兼容所有浏览器的解决办法
- text-overflow:ellipsis溢出显示省略号兼容所有浏览器的解决办法
- text-overflow:ellipsis;-moz-binding: url('ellipsis.xml#ellipsis'); 文本字符串超过容器长度溢出部分显示点点点省略号"..." ,支持IE6+,Firefox !
- 关于Ubuntu下ibus在firefox浏览器中选中即删除的解决办法
- Selenium不支持firefox3的解决办法
- 让sublim text3支持vue语法高亮的直接解决办法
- 解决在firefox浏览器不支持ajax的transport.responseXml方法问题
- firefox通过XUL实现text-overflow:ellipsis的效果
- 浏览器不支持PNG图片背景透明的解决办法
- 【学习笔记】Firefox等浏览器无法正常打开dojo的test文件解决办法
- IE与Firefox等浏览器对容器width的不同解释及解决办法
- text-align-last safari 不支持的解决办法
- Linux centOS6.4下的firefox浏览器登录webqq无法显示验证码解决办法
- 对于支持上传文件的手机浏览器出现的图片不能预览问题的解决办法
- 当客户端浏览器不支持相应版本的apple时自动下载运行环境jvm的解决办法!
- 浏览器不支持java的解决办法
- 64位Linux,FireFox浏览器中Flash播放器解决的办法