I. x: after. Clearfix: after {Content: "";Display: block;Clear: both;Visibility: hidden;Font-size: 0;Height: 0;} . Clearfix {* Display: inline-block;_ Height: 1%;}I think the above code, many of my friends are very familiar with it. It is often used
The code is as follows:Copy code css tutorial li span arrange instances by date on the right 2011-03-22 fdafjdsakljdaklfdjalkf; djakfl; dsajfk 2011-03-22 fdafjdsakljdaklfdjalkf; djakfl; dsajfk 2011-03-22 fdafjdsakljdaklfdjalkf;
Solution within one row. Do you remember that when overflow: hidden is specified for the parent element, the parent element will be extended to include floating? This method is similar to this. The key is to use em and add spaces between each letter:
Browser supportAll mainstream browsers support the visibility attribute.Note: internet explorer (including ie8) of any version does not support "inherit" or "collaps tutorial e" attribute values.All mainstream browsers support the display
I. Old opacity settingsThe following code sets the transparency required for earlier versions of firefox and safari: The code is as follows: Copy code # Myelement {-khtml-opacity:. 5;-moz-
1. Use a pseudo-class: after to clear the pseudo-class layer with zero height in the subsequent blank system2. Use css overflow: auto to raise the bar3. Use css overflow: Den to generate weird adaptation4. Use display: table to convert objects into
There are three lists in html: unordered list ul, ordered list ol, and definition list dl.1. Unordered list: ...... ...... Check out an ul li menu instance. * {Margin: 0; padding: 0 ;}Ul {list-style: none ;}Ul # nav {background: # f3c; height:
Method 1:For ie, add the following in the sub-container:Position: relative;For firefox, only png can be used.Background: url (images/boxbg.png );/* Only ie identification is supported */* Background: # cccccc;Method 2:A brief description is also a
Px: pixel, pixel, minimum unit displayed on the screen;Pt: point, which is a standard unit of length in the printing industry. 1pt = 1/72 inch;In windows, the text is defined as 96 dpi in the default display settings. This shows that 1px = 1/96 inch;
analysis of multiple css tutorial styles in ie6 Master, the master has been taken away by monsters. The second brother was taken away by monsters. Master, brother two was taken away by monsters. Master, master, and senior two are captured by
1. Clear floating with empty tags left right An empty tag can be a div tag or a p tag. I am used to using , which is short enough, and many people use . I just need to clear the border for it, but theoretically it can be any label. This method adds
1. Use a pseudo-class: after will be used to clear the pseudo-class layer with a null height and zero bit2. Use css overflow: auto to raise the bar3. Use css overflow: Den to generate weird adaptation4. Use display: table to convert objects into
Description of list-styleDefinition and usageList-style short attribute sets all list attributes in a declaration.DescriptionYou can set the following attributes in sequence:• List-style-type• List-style-position• List-style-imageYou can leave a
In this case, this box is called an unsung block box because it is not associated with a specially defined element.The text lines of block-level elements are similar. Suppose there is a paragraph that contains three lines of text. Each line of text
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