Core tip: use abbreviations to reduce the size of the CSS file and make it easier to read. This article mainly introduces the main abbreviations of CSS rules, including color, box size, border, background, fonts, lists and other aspects of the
Article Introduction: input label default style difference and its cross-browser design.
The search box at the top of the flying Fish's sonar gave me a headache for a long time because it was not always possible to get a unified style
Web page Production WEBJX article introduction: Div+css 6 Steps to build a Web page.
We all know that using div+css layout to design a site to facilitate optimization, easy to be included, such as two sites at the same time online, with
CSS layout when you encounter bugs, take a good look at these 10 formulas, it is easy to remember.
If you are using CSS to design the layout of the bug, please read the following carefully, very easy to remember, do not know which person to the CSS
Simple introduction of several CSS hidden text methods, I hope to help you.
As a Web front-end developmentFor HTML semanticsIt is often necessary to add some headings to the content module to make the page more meaningfulAnd, of course, our picture
Some time ago I was doing the theme of green Gaint, I found a problem in the layout of floating. Let me explain, as shown in the following illustration:
We assume that there is a container a in which two containers B and c,b set the height and
CSS has a property called vertical Align. It's a bit confusing when you first learn it, so I think we can learn it by its usage. The most basic usage is like this:
img{Vertical-align:middle;}
Note that in this application case, it is applied to
1. The menu Menu
This another great CSS menu Stu Nicholls that ' s unique–hovering over a menu item reveals a submenu. If you are want get started and this menu just simple view the source code. Demo in page.
2. Pure CSS Hover Menu
View Demo
Have you ever had the experience of putting one element on top of another and hoping that the following element would be clickable? Now, you can do this by using the pointer-events attribute of CSS.
CSS pointer-events
Pointer-events originally
Here are a few practical CSS tips that might help you.
Use Line-height to center vertically
line-height:24px;
If you use a fixed-width container and you want a row to be centered vertically, you can use Line-height (which is the same height as the
Here's a list of simple and practical ways to help you improve your CSS stylesheets, and if you're just starting to use CSS, this log will help you better understand CSS.
Here's a list of simple and practical ways to help you improve your CSS
The vertical center of the picture is often encountered in the DIV+CSS layout, the following question we study and give a solution!
The goal is to use a pure CSS to implement an unknown size picture (but width is less than 200px) centered
Pure CSS Paste the bottom of the page code, ff2.0+, ff3.0+, IE6, IE7, Safari, Opera, chrome all through, ie8b2 under the effect of flaws, with the hack method to solve.
...... in test,alixixi test Menu Section I am the main body, I am the core
Only the latest browsers are supported. That is to say, give up IE5 and IE5.5. This will save you a lot of time. For IE6, it is not necessary to use the box model hack. If it's only for popular browsers, the same effect can be achieved with very
("√" represents an identifiable priority, "X" represents an unrecognized)Example: (Ff:white;ie7:greenie6:orange)For FF and IE6 only (IE7):Background:white;*background:orange;For IE7 and IE6 only:Background:green;_background:orange;Or
In some large web site HTML code, we often see code, then, what is the use of them?
This code is rarely applied in most front-end designs, but this is a different browser style declaration to achieve a compatible effect, the following provides an
Compatible with each browser CSS sliding door instance, the code is as follows, can be run to see the effect.
Css+div sliding door effect on the Web page is very common, wide range of applications, can reduce the footprint of the page space, the
In the absence of a DTD declaration, the IE6,IE7,IE8 parsing of!important is invalid under the same selector style (that is, the same curly brace).
Precedence of a CSS
Today, someone told me that CSS hack with!important to distinguish IE6, because
The important principle of how browsers read your CSS selectors is that they read from right to left. This means that a selector like the ul > Li a[title= "Home", a[title= "Home", will be read first.
I admit that I don't often think about this
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