1, according to the width and height properties of the broad, you can clearly set the width of the height is based on the parent element of the width of the high;2. The Web browser will consider the open width of the browser window when calculating the effective width. If you don't set any default values for width, the browser automatically tiles the contents of the page to fill the entire horizontal width. That is, we do not set the width, will automatically fill the entire horizontal width, be
First look at what we need to achieve an effect!
OK, finish the effect, then, with CSS how to achieve this effect? First, write a simple code:
Copy code code as follows:
Here, we can get a black square, in fact, this is the frame, because the width and height of the div is 0, then, we specifically to see, div width and height are 0 o'clock, it's the top and bottom of the four border is how, the following we put the color of the border of
This has a new problem, the current work in the IE7 of the Web page in the IE8 will have problems.
Microsoft offers three modes of parsing pages in IE8
IE8 Standard Modes: The default of the most standard mode, strictly in accordance with the relevant rules of the Consortium
IE7 Standards MODES:IE7 is now used to parse the Web page of the model, open the organization is in the join
Quirks MODES:IE5 used to parse the model of the Web page, the open authority is to delete the HTML top of the DOCTY
Many of the people I contacted asked how to learn Web standards to make Web pages. I think everyone who has just contacted the Web standards will ask such questions, and I will summarize them according to my own experience.
1. Do not blindly use the DW and other tools to design Web pages to familiarize yourself with (X) HTML and CSS languages
Because the requirements of the Web standards for the code increa
This article mainly introduces the CSS combined with JS to make the implementation of the Drop-down menu, the need for friends can refer to the following nbsp; Code as follows: ;nbsp; nbsp;
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.