Home > Web Front-end > HTML Tutorial > How to cancel the gap between the div definition block and the right side of the screen, please guide me_html/css_WEB-ITnose

How to cancel the gap between the div definition block and the right side of the screen, please guide me_html/css_WEB-ITnose

WBOY
Release: 2016-06-24 12:15:51
Original
1417 people have browsed it

In the web page I made, I feel that there is a gap between the overall frame and the browser. How to solve this and what causes it? I just studied it by myself. I hope the master can make it easier to understand. Thank you.


Reply to the discussion (solution)

CSS can have such a definition *{margin:0;padding:0;} which can generally solve your problem.

CSS can have such a definition *{margin:0;padding:0;} which can generally solve your problem.
Correct answer!

It depends on what kind of gap it is. It is best to post code or pictures, otherwise it will be difficult for others to answer you

css can have such a definition *{margin:0;padding:0 ;} Generally it can solve your problem.
That’s OK

The problem is solved, thank you for your help!

Look at the css of various websites on the Internet. There will be one or a section of css specially used for reset. Set it in a targeted way
It is not recommended to use *{margin: when pursuing performance. 0;padding:0;},

body { margin:0; padding:0; }
p,h1,h2,h3,h4,h5,h6,ul,ol,li,dl, dt,dd { margin:0; padding:0; }

Write this sentence globally *{margin:0;padding:0;}www.seo7ye.com

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