我有一个简单的Javascript程序,应该防止我的网页包装时,减少浏览器窗口的大小。它工作在我的一个网页,但不是在一个新的网页,我试图设计。
Javascript:
$(document).ready(function() {
$("[class~='floatNoWrap']").each(function () {
$(this).css("width", $(this).outerWidth());
});
});CSS:
.floatNoWrap
{
width: 100%;
height: 100%;
}HTML:
<div class = "floatNoWrap">
HTML WEBPAGE CONTENT ...
</div>发布于 2014-02-03 20:39:01
使用white-space:nowrap;
https://stackoverflow.com/questions/21537061
复制相似问题