填充屏幕宽度
我真的很难整理我为某人建立的网站。 我花了几个小时试图解决这个问题!我的知识有限,所以代码会有所帮助。他们希望顶部的部分(最初是两个图像,现在我正在尝试背景图像和 CSS)来填充浏览器的宽度 - 无论它的大小是多少。有谁知道该怎么做?
同样,是否有一个设置可以让文本填充 100% 框的宽度,无论如何?
即使有人帮助我迈出一步,我也会非常感激!他们希望所有内容都紧密且内联,在某些浏览器/屏幕中确实如此,但在我的浏览器/屏幕上,它散布有大量空白。
www.thegees.co.uk 是该网站。
I'm really struggling to tidy up a web site I am building for someone.
I've spent hours on trying to figure this out! I have limited knowledge so the code would be helpful. They want the section at the top (originally two images, now I'm trying background images and css) to fill the width of the browser- no matter what size it is. Does anyone know how to do this?
Similarly, is there a setting to get text to fill 100% width of the box, no matter what?
I would seriously appreciate even someone helping me move on a step! they want everything to sit tight and inline, in some browsers/screens it does but on mine it spreads out with lots of white space.
www.thegees.co.uk is the site.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我不知道你所说的“文本”是什么意思,我也不确定这是否会对你有帮助,但默认情况下任何块级容器都将具有 100% 宽度:
如果你有一个
span
不会拉伸到 100%,请在其周围放置一个div
,无论该跨度具有什么背景属性,请改为使用div
。I don't know what you mean by "text", and I'm not sure whether this will help you but any block level container will have 100% width by default:
If you have a
span
that won't stretch to 100%, put adiv
around it and whatever background properties the span has, give thediv
instead.从这两个标签中删除“宽度”定义:
< TD宽度=“48%”>...< /TD>
< TD宽度=“52%”>...< /TD>
Remove the "width" definition from these two tags:
< TD width="48%">...< /TD>
< TD width="52%">...< /TD>