自动换行功能在chrome中不起作用 [英] word-wrap feature not working in chrome

查看:904
本文介绍了自动换行功能在chrome中不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用以下样式表代码在表的列中实现自动换行:

I am using the following stylesheet code to achieve word-wrap in the column of a table:

<style type="text/css">
    table,td {  
        table-layout: fixed;        
    }
</style>

此代码在Firefox中运行良好,我可以实现自动换行,但是当我尝试这个时在Chrome浏览器中,它不起作用。

This code works well in firefox and I'm able to achieve word-wrapping but when I tried this in chrome browser, it doesn't work.

你能否建议如何让它在所有浏览器中运行(IE,firefox,chrome)

Can you please suggest how to get it work in all the browsers (IE, firefox, chrome)

推荐答案

尝试将此属性设为css

Try it this property to css

word-break: break-all;

这篇关于自动换行功能在chrome中不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆