gpt4 book ai didi

css - FF帮助中的自动换行/换行?

转载 作者:行者123 更新时间:2023-11-27 22:40:25 25 4
gpt4 key购买 nike

我正在构建新站点 FF 和 IE 兼容...在 Firefox 中让句子换行以填充容器的最佳方法是什么?这在 IE 中没有任何问题。

目前我正在使用以下文档类型 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

谢谢

最佳答案

尝试了一个测试用例:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<style>
.articleContent { width:200px;
}
</style>
</head>
<body>
<table><tr><td> <div class="articleContent" > this is a sentence that goes on and on. this is a sentence that goes on and on. this is a sentence that goes on and on. this is a sentence that goes on and on. this is a sentence that goes on and on. </div> </td></tr></table>
</body>
</html>

在 FF/konq 中渲染良好。听起来您的 CSS 在某处被覆盖了。

关于css - FF帮助中的自动换行/换行?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/605007/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com