FIREFOX / IE Word-Wrap, Word-Break, TABLES FIX
/* this will force a column to be no wider than 300px,
breaking words in the middle of a long word if necessary. */
.HardBreak{
width: 300px;
white-space: pre-wrap; /* css-3 */
white-space: -moz-pre-wrap; /* Mozilla, since 1999 */
white-space: -pre-wrap; /* Opera 4-6 */
white-space: -o-pre-wrap; /* Opera 7 */
word-wrap: break-word; /* Internet Explorer 5.5+ */
}
You could also replace the .HardBreak class designator above with
td
{
and the style would automatically apply to all TD elements. Remove the width attribute in that case, and set the width in the TD element itself.
Phần đầy đủ
Nhận xét
Đăng nhận xét