某些分辨率的网页布局中的线条
我正在创建的布局有问题 - 问题是在某些分辨率下(或者如果放大)您可以看到 div 框的轮廓在哪里。
它应该是这样的:
这是在某些分辨率(或放大)下的样子:
如果您需要查看该网站,则为 这里,尽管显然它还没有完成。根据您的分辨率,您可能会立即看到问题,如果没有,您可以放大或更改显示器分辨率。
我想这是一个常见问题,有一个简单的解决方案。感谢您的帮助!
I have a problem with the layout I'm creating- problem being that in certain resolutions (or if you zoom in) you can see where the outlining of the div boxes are.
Here's what it's supposed to look like:
Here's what it looks like at some resolutions (or zoomed in):
If you need to see the website, it's here, though obviously it's not finished yet. You might immediately see the problem based on your resolution, if not you could zoom in or change your monitors resolution.
I would imagine this is a common problem with an easy solution. Thanks for your help!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
如果将
#righthand
更改为float:left
,右侧的垂直线就会消失。如果将
#tp
更改为height:248px
,另一条水平线就会消失。If you change your
#righthand
to have afloat:left
, the vertical line at the right disappears.And if you change your
#tp
toheight:248px
, the other horizontal line disappears.在网站被删除之前,我没有足够的时间查看该网站,但我认为它可以像设置
背景一样简单:透明 url(imgsrc) no-repeat left top;
css 中背景图像的简写将锁定该位置。除此之外,我会确保你有
margin: 0;
填充:0;
这样您就可以指定准确的宽度,并确保所进行的切割是针对网格进行的,以便在切片图像时获得准确的宽度。
I didn't have enough time to look at the site before it was taken down but I think it could be as simple as setting
background: transparent url(imgsrc) no-repeat left top;
that shorthand for the background image in css will lock in the spot. Other than that I would make sure you have
margin: 0;
padding: 0;
so that you can specify the exact width and make sure the cuts that are made are done to a grid so that when you slice the image you have an exact width.