text-overflow:ellipsis doesn't work on IE

前端 未结 3 2183
陌清茗
陌清茗 2020-12-01 16:00

In this page there are some links at the left sidebar that get cropped with:

.widget-area .textwidget li {
    overflow: hidden;
    text-overflow: ellipsis;         


        
相关标签:
3条回答
  • 2020-12-01 16:19

    Removing the word-wrap: break-word property should help.

    0 讨论(0)
  • 2020-12-01 16:37

    add width property to your CSS code..this would help..

    0 讨论(0)
  • 2020-12-01 16:38

    For IE you should add some extra code..like changing ur width property..or try using a dotdotdot jquery plugin..that would be an alternate solution.. Like this

    http://dotdotdot.frebsite.nl

    Edit: Follow this link

    Quirksmode textoverflow

    which tells you to set the width:100% for IE..

    0 讨论(0)
提交回复
热议问题