Recently on the website and the blog can find the use of a variety of very helpful effects of animation effects. Codyhouse describes these CSS and Javas cript coding tutorials.
Because each file can be downloaded, so you can use it right away.
Only the native JavaScript is written.
1. Use JS to modify the label's Class attribute value:
The class attribute is one of the ways to refer to a style sheet on a label, its value is a stylesheet selector, and if the value of the class attribute
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 across browsers. There are two main questions: one is the height of input tags can not be unified,
If you use annotations properly, adding annotations to your CSS files can be a great help to you and others during the development process. The most common is to add hints to CSS style rules, but using annotations is also helpful for optimizing your
The swelling of the head, can not see things do not matter, then write a essay bar.The picture is centered vertically, the principle should be, in fact, I do not know.Two methods on hand, similar to each other, but are compatible with IE6.
Copy
An area on a Web page, when the mouse moved to change the style, the mouse out of the automatic recovery style, can be a picture of the border, can also be a paragraph of text color, master the principle, seemingly can do more rich and vivid
When you do a prize-winning information online, you often see some
online fill in the blanks . Xian{border-left-style:none; Border-right-style:none; Border-top-style:none;}-->Hide your borders user name:
Realize the effect of simple and
The top of IMG and input on the page is always aligned, the preview is as follows:
The solution is actually very simple, we just add vertical-align:middle attributes to the picture.
The code is as follows
"
form elements perfectly vertically centered radio boxes and check boxes are small in size and are not easily clicked. Cause a lot of user's trouble, the user experience is not See "A cool" perfect solution: Perfect Vertical Center,
hand Hand type crosshair Cross text text wait waiting help question mark e-resize right arrow ne-resize arrow on the right n-resize nw-resize arrow on the left w-resize left arrow sw-resize left arrow s-resize under the arrows
Display:block is a block of objects
Display:noneis not displayed
QU1: I often see there is to do a layer, and then write something in it, and then give it a property display:none, so that this thing is not visible on the page, but why build a
The -9999 px Image substitution technology has been popular for one of the best parts of the decade. Replace a text element and an image, you can use the following code:this Text is replacedThe background of the element is displayed and its text is
one, inline style (Inline style)
That is, use the Style property to write the CSS directly in the HTML tag.
For example: This line of paragraph will appear in red.
Note : The Style property can be used on all (X) HTML
So a little research, under this record:
Of course, to achieve transparency, many generally use three ways:
1, direct use of transparent pictures, this is really more direct, but often need to make pictures, personally think, maintainability is
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