I. Description
Sets the style of an element when it is activated by the user (an event that occurs between mouse clicks and releases).
IE7 and earlier browsers only support the A-element: active, which supports other elements from IE8:
I do not know what you will do when you meet a very beautiful design when you are doing the project. There are some designs that often use the shadow effect to look more solid, and in general the lazy people like me cut the diagram directly. There's
Workarounds for margin:0 Auto invalidation in CSS
111111111
Div1 width is screen width, div2 width varies with content size and centered with Div1, but div2 width I set to auto width or div1 100% width, why this? Study the whole night did not
Method One:
min-height:160px; Set Object box's minimum height, Firefox, ie7+ applicable;
Height:auto!important;
Set Object box height without auto-positioning, using!important to prioritize the lower height positioning setting;height:160px; Set
HTML and CSS are two different languages that work on a Web page, so you must link CSS with HTML.
The simplest of the two are introduced directly in the HTML tag, or in front of the HTML file, the following is a simple code example
Title
CSS image is centered horizontally
Using margin:0 Auto to center the image is to add a CSS style to the image margin:0 auto as follows:
Use the horizontal Center property of text Text-align:center
CSS image vertically centered
Use high = = line
Now is the mouse moved to the menu, the background color changes, the mouse to move or click Back to return to the primary color, now is how to achieve a click on the background is the mouse to the background of the menu, and click on another menu
in general, the background image of the navigation menu is more regular, but usually we also encounter a lot of background image shape irregular navigation bar (for example, but when the mouse moved, the background image is irregular, this example
The Web page foreground code often uses the Display:none style, usually found several characteristics need to notice
1, if in the style file or the page file code directly with the Display:none element is hidden, loading the page, in the absence
How CSS changes the instance sharing of scroll styles
/* Define the width of the scrollbar and the background aspect corresponding to the size of the scroll bar */ ::-webkit-scrollbar { width:16px; height:16px; Background-color:
There are two ways to cover a p on another p: one is to set the margin to a negative value, and the other is to set absolute positioning.
You can set the value of Z-index in the root of your situation
The situation of 1->position for absolute
CSS3 custom scroll bar style-webkit-scrollbar
Sometimes I think the original scroll bar that the browser comes with is not very beautiful, how does the WebKit browser customize the scroll bar?
WebKit supports areas with overflow properties, list
Ajax summary and ajax learning Summary
In normal development projects, it is inevitable that you have access to the front-end knowledge and need to write interfaces. Sometimes, ajax in js spans requests and summarizes the ajax writing method.
Before
After the action attribute in form? The passed parameter cannot be obtained. formaction
1 $ p_id = $ _ REQUEST ['P _ id']; 2 3 echo " You will update the product information View All 4 5 product name: product name less than 10 characters 6.
CSS: a deep understanding of the relative and cssrelative of Study Notes
1. Relationship between relative and absolute
Restrictions: ① restrict left/top/right/bottom positioning; ② restrict the z-index level; ③ restrict the arrogance under
DIV + CSS layout-fixed page opening layout, divcss
Main CSS attributes in DIV + CSS layout:
Float:
The Float attribute is the most basic and commonly used attribute in DIV + CSS layout. It is used to implement the multi-column function. We know
Css draw shape, css draw
Finally, my freshman year is over, and a pleasant summer vacation begins. I have been busy with some projects and finally decided to update my blog today. I will make a brief summary of the previous study.
This time I
Css draw shape, css draw
Finally, my freshman year is over, and a pleasant summer vacation begins. I have been busy with some projects and finally decided to update my blog today. I will make a brief summary of the previous study.
This time I will
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