文本不会在HTML / CSS中正确调整大小 [英] Text wont re-size properly in HTML/CSS

查看:78
本文介绍了文本不会在HTML / CSS中正确调整大小的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的网站上的文字在制作浏览器时不会重新调整大小

窗口小,这里应该看起来像是什么

http:// puu.sh/cHBLL/85a120e2c0.jpg

但是当浏览器窗口变小时查看文本

http://puu.sh/cHBXN/f13a685962.jpg

它会压缩中间的文本并生成更多行。

这里是我的代码



HTML:< br $>




The text on my website will not re-size correctly when making the browser
window smalller, here is what it is supposed to look like
http://puu.sh/cHBLL/85a120e2c0.jpg
But look at the text when the browser window gets smaller
http://puu.sh/cHBXN/f13a685962.jpg
it squashes the text in the middle and makes more lines.
here is my code

HTML:




Toontown Classic即将推出


Toontown Classic is coming soon





CSS:



#NewsPosts {

头寸:相对;

底部:0px;

顶部:-925px;

宽度:45%;

职位:中心;

保证金:0自动;

字体大小:20px;

margin-left:10;

保证金权利:10;

text-indent:5;

}



CSS:

#NewsPosts{
position: relative;
bottom: 0px;
top: -925px;
width: 45%;
position: center;
margin: 0 auto;
font-size: 20px;
margin-left: 10;
margin-right: 10;
text-indent: 5;
}

推荐答案

可以尝试删除width属性'width:45%;'。如果它不起作用,请尝试使用'width:100%;'或'width:auto;'。我希望这会对你有帮助:)。
Can you please try, with removing the width property 'width: 45%;'. If it won't work, then please try with 'width: 100%;' or 'width: auto;'. I hope this will help you :).


这篇关于文本不会在HTML / CSS中正确调整大小的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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