Home > Web Front-end > HTML Tutorial > 【CSS】body元素的background-image越界_html/css_WEB-ITnose

【CSS】body元素的background-image越界_html/css_WEB-ITnose

WBOY
Release: 2016-06-21 08:59:52
Original
1247 people have browsed it

为什么body元素的背景图片是从边框外边开始显示的


回复讨论(解决方案)

body{margin:0;padding:0;}

http://www.zhangxinxu.com/wordpress/2009/09/%E5%AF%B9html%E4%B8%8Ebody%E7%9A%84%E4%B8%80%E4%BA%9B%E7%A0%94%E7%A9%B6%E4%B8%8E%E7%90%86%E8%A7%A3/

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template