(1) The DIV block cannot be written even if the content is empty.
Otherwise, CSS considers that the DIV is not closed, causing a parsing error. Which of the following statements is true?
If you use the xmldocument class of FCL to write an
Original address: http://www.bluebirdsky.cn/article.asp? Id = 295 I. general differentiation methods:
Ie can recognize *, but standard browsers (such as ff) cannot recognize *;IE6 can recognize *, but cannot recognize it! Important;IE7 can
Two days ago, a webpage was running normally in other browsers. In the case of a damn IE6 browser, IE6 was suspended, and all other pages opened were closed. It turns out that this is the first case. At the same time, we also found other card traps,
Abstract: designing and developing a website is sometimes tiring, because all the small things need to be taken into account, including all the adjustments and small changes that may happen at any time. Therefore, designers and developers are
To be continued (to be continued )...
1. Internal CSS style:
2. external CSS style:
Notice that is an empty element.
3. Comment in CSS:
(Null)
4. CSS Selector
4.1. class selector:
If you have created a element with "comment" class, then you
CSS naming rules
Header: Header
Content: content/containe
End: footer
Navigation: nav
Sidebar: sidebar
Column: Column
Overall Layout width of the page peripheral control: wrapper
Left right center
Logon entry: loginbar
Logo: logo
Advertisement:
Loading HTML and cssas code in flash:
Add a dynamic text box named loadtxt_css in the scenario.
Write the following code to the new layer:
VaR loadtxt_css: textfield. stylesheet = new textfield. stylesheet ();
// Defines loadtxt_css as a style
Common CSS layout methods:
Float: None | left | right
Valid value:None: default value. Objects are not floatLeft: Right of the text flow objectRight: Left side of the text flow object
How does it work? Let's look at an example of one row and two
One of the translucent text floating on the Image
1,
2. HTML code
image description text the cat vase: the cats are cute, white, with gold-trimmed ears and tails.
3. CSS code
/* CSS style sheet for your captions-2a.html]
[Javaweb Prepass series] Chapter 2 CSS and Div introduction -- v512 studio Editor: Xuan Yu
Embedded Style
Basic syntax
Div tag
Cpoyright
Internal style sheet
Font attributes
Length Unit
My blog
[Javaweb Prepass series] Chapter 2 Div and CSS standardized webpage Layout-lamp training expert Editor: Xuan Yu
Float
Input style sheet
Cpoyright
Clear
Benefits of Div + CSS
My blog
Margin
Selector of
Because many browsers have different kernels, their parsing JS and CSS are also different. In this way, we need to be compatible with them. The following are some tips for CSS-compatible browsers: 1. CSS hack the following two methods can solve
After a long time, the Z-index settings are approaching astronomical numbers, that is, there is no expected results, and it is very depressing for a while!
The floating layer structure is roughly as follows:
The floating of the content layer is
This article describes how to set the HTML span width.The width setting of HTML span is invalid by default.
In HTML, how do I set the span width? This seems to be a very simple problem. It seems that you can use the width attribute in the style. For
1. width is a ray
Many pages require adaptive width, so set the width to a percentage. Otherwise, the block elements will easily become a dog skin plaster that does not stick.When the width of an element is not defined, the browser fills up the
I. Margin: auto 0 and text-aligh: CenterIn modern browsers (such as Internet Explorer 7, Firefox, and opera), the method of implementing horizontal center in modern browsers is very simple, as long as the blank spaces on both sides of the left and
1. Do not use a small image for background tile. This is why many people do not need 1px. Images with a width of 1 px and a height of 200 PX are tiled out, which requires 200*40,000 = times to occupy resources.
2. No border. The recommended method
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