标签:echo 样式 div int inter css mozilla 超出 换行
当超出时 td超出或者div超出 加如下样式
pre {
white-space: pre-wrap; /*css-3*/
white-space: -moz-pre-wrap; /*Mozilla,since1999*/
white-space: -pre-wrap; /*Opera4-6*/
white-space: -o-pre-wrap; /*Opera7*/
word-wrap: break-word; /*InternetExplorer5.5+*/
}
<td>
<?php echo ‘<pre style="white-space: pre-wrap; /*css-3*/
white-space: -moz-pre-wrap; /*Mozilla,since1999*/
white-space: -pre-wrap; /*Opera4-6*/
white-space: -o-pre-wrap; /*Opera7*/
word-wrap: break-word; /*InternetExplorer5.5+*/">‘;
print_r($data); echo "</pre>";?>
</td>
标签:echo 样式 div int inter css mozilla 超出 换行
原文地址:https://www.cnblogs.com/kumufengchun/p/13280600.html