Html
The HTML code for the two menus is different, since you can't design the and styles to have the same appearance and behavior, and vice versa, so far. So both need to be designed, and all you do is write the signs of both. The FSS approach
The first point is consistent with mine, but I changed it to position: absolute, and the problem still exists. The second and third points do not match my situation.The next step is layer-by-layer Tracing. We find that we can add "position: relative;
Class selectorIn CSS, the class selector is displayed with a dot: The code is as follows:Copy code . Center {text-align: center} In the preceding example, all HTML elements with the center class are centered.In the following HTML code, both h1
I. INTRODUCTION to condition comments1. Conditional comments in IE is a common hack method in WEB design, which can distinguish IE versions from non-IE versions.2. Condition annotations can only be used for IE5.3. If you have installed multiple IE,
Z-index specification reference• In W3C CSS2.1, each element has a three-dimensional spatial location, except for the horizontal and vertical positions we are familiar, the elements can be stacked on the "Z axis" and arranged forward in sequence;•
The methods for FF, OPERA, SAFARI, IE7, and IE8 are as follows: The code is as follows:Copy code Img {max-width: 100px; max-height: 100px ;}Img {min-width: 100px; min-height: 100px ;} IE6 and earlier versions use the expression attributes
Border-radius attributesFor CSS3 rounded corners, you only need to set one attribute: border-radius (meaning "border radius "). If you provide a value for this attribute, you can set the radius of the four rounded corners at the same time. All valid
Definition and usageThe letter-spacing attribute adds or removes spaces (character spacing) between characters ).This attribute defines how much space is inserted between text character boxes. Because the font is usually narrower than its character
Code The code is as follows:Copy code pure CSS animation effects animate.css This is a series of animated effects implemented using CSS. Click the following button to view the effects ~~ Attention seekers flash bounce shake tada fade-
The code is as follows:Copy code Fixed Width Layout-Outer container collapsed We flew with Czech Airlines and weren't expecting a swish ride; we also weren't expecting to be fed on such a short flight on economy tickets, so we gorged on
Let's see the effect first. The code is as follows: The code is as follows:Copy code Since the definition in xhtml has no effect on the body, for general purpose, you can define both the body and the html tag.
Let's first look at a style. What if we set the element border:TestIt seems that I can't see anything. Let me add different colors to the four borders. Let's take a look:TestDid you find something? Right. Let's remove the text in the middle: In this
Cell-box: the minimum frame of the surrounding content.Baseline of cell-box: generally, it is the first line of text box in the cell-box from the bottom up to 1/4 (about, for personal understanding ).Baseline of this line: This line vertical-align
Accidentally passing by the Firefox community finds that their floating layer following the scroll bar is smoother than they did before,Naturally, I'm curious to use Firebug to analyze its structure:1. At first, I felt like I was writing the same
I. Floating elements automatically change Block-level elementsFirst, let's talk about the differences between block-level elements and intra-row elements. To put it simply, block-level elements occupy only one row. You can set the width and height
The code is as follows:Copy code If (browser. isie6 ){Try {Document.exe ccommand ("backgroundimagecache", false, true );} Catch (e1 ){}} Easier writing The code is as follows:Copy code Document.exe ccommand ("backgroundimagecache", false,
· 1. align the two ends of the text: text-align: justify; text-justify: inter-ideograph;· 2. fixed width Chinese character truncation: overflow: hidden; text-overflow: ellipsis; white-space: nowrap .) (IE5 or above)· 3. fixed-width Chinese character
Overflow attribute description:Version: CSS2 compatibility: IE4 + NS6 + inheritance: NoneSyntax: overflow: visible | auto | hidden | scroll The parameters are described as follows:Visible: Do not cut the content or add a scroll bar. If this default
In form, we can group and classify information in form. For example, in form of registry form, we can divide registration informationBasic information (required generally)Details (optional)So how can we achieve it better? We can consider adding the
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.