1, to set up a overflow ah. will not have to hidden up!
<textarea id="runcode11684"><! DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 transitional//en" "Http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd "> <ptml xmlns=" http://www.w3.org/1999/xhtml "> <HTML><HEAD><TITLE>test</TITLE> <style type=text/css> #me {margin:0px; height:5px; Background-color: #CC9966; Overflow:hidden} </STYLE> <meta http-equiv= "Content-type" content= "text/html; charset=gb2312 ></HEAD> <BODY><!--Header--<!--page End--<!--search section--</BODY> </HTML></textarea>
[Ctrl + A full selection Note: If you need to introduce external JS need to refresh to execute]
2, font-size:1px;
<textarea id="runcode3398"><! DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 transitional//en" "Http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd "> <ptml xmlns=" http://www.w3.org/1999/xhtml "> <HTML><HEAD><TITLE>test</TITLE> <style type=text/css> #me {margin:0px; height:5px; Background-color: #CC9966; font-size:1px;} </STYLE> < Meta http-equiv= "Content-type" content= "text/html; charset=gb2312 ></HEAD> <BODY><!--Header--<!--page End--<!--search section--</BODY> </HTML></textarea>
[Ctrl + A full selection Note: If you need to introduce external JS need to refresh to execute]
Upstairs is also correct. In fact, the principle is similar. The div belongs to the block element. There will be some line elements in it and so on. Overflow: Hidden is to hide these invisible elements. The font-size set to 1PX only sets it to 1PX. That's the same thing. Because I am a vegetable. So I have to understand. The terminology is not correct. Don't blame me!
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service