急问!!我制作的网页在浏览时,把查看里的文字大小设为最大时,文字就换行了,怎么办?

来源:百度知道 编辑:UC知道 时间:2024/04/28 20:22:52
怎样才能让网页里的文字不管载浏览时文字大小怎么设置都不改变

用CSS 控制就没问题了..放在HEAD里
<style type="text/css">
<!--

body,td,th {
font-family: 宋体;
}
body {
background-color: #670001;
font-family: "宋体";
font-size: 14px;
color: #670001;
text-decoration: none;
}
a:link {
text-decoration: none;
font-family: "宋体";
font-size: 14px;
color: #670001;
}
a:visited {
text-decoration: none;
color: #8C4600;
}
a:hover {
text-decoration: none;
}
a:active {
text-decoration: none;
}
a {
font-family: 宋体;
}
-->
</style>

你把文字变大了,一行装不下,自然就会换到下一行啊。