开发者

HTML Text Wrap Versus Scroll

I have a table with column contents that could be potentially long. From a design/usability standpoint, is it better to wrap the text or provide a scroll bar within the column to view the entire text?

Personally, I think wrapping the text is better. But I wanted to know what have others done in such a 开发者_Python百科situation?


I ALWAYS page my content rather than wrapping or scrolling. It's super easy with jQuery DataTables and it gives the user further opportunities to filter, limit, and sort the data.

This solution also gives you the option to scroll data as well, and to dynamically adjust columns or do show/hides. But I've never gotten to that point. One one of my applications, using Ajax and Pipelining (which are supported by the plugin) it handles 3+ million records without a hiccup. Also, note that it can use jQuery's Themeroller, which can style the table simply and even from the user end on the fly if so desired.


I usually let the text wrap into the cell. But, what do you mean by "potentially long"?


I use a calendar plugin and sometimes the title gets long- i made the decision to break the string in the middle if needed- Supported in CSS3 only- other wise it just wraps

My css

.fc-event-title {
text-wrap: unrestricted;
word-wrap: break-word;
}

and will only happen if mywordisexteremlylong and wont fit properly in a small cell

But this is very extreme so that it does not overflow into the next cell.

But otherwise i dont break the word if there is enough space.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜