Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我为正在开发的网站创建了站点地图,但在整个屏幕上拉伸背景图像时遇到了一些问题,如此屏幕截图所示。截屏
如您所见,我正试图摆脱右侧和底部的边框。我使用的标记是
#sitemap { background-image:url(images/gradient-sitemap.png); position: relative; left: -10px; top: -1px; width: 100%;; height: 225px;
}
尝试从您的正文标签和 HTML 中删除所有内容
html, body{margin:0px; padding:0px border:0px}
将宽度设置为 101%,将高度设置为大于当前 225px