In most cases we do not need to determine whether the CSS file is loaded successfully, but some time this function is needed, today I have to organize a variety of browser-compatible decision CSS file load completion method to share with you To
Today because of the need to use JS to get CSS properties, online search for half a day is not appropriate. There are several waysThe code is as follows: var getstyle = function (elementid,attribute) {obj = document.getElementById
Preface
Recently encountered a demand in the work, the realization of the effect is when click on the product image right on the collection button to trigger the amplification animation, and then find the relevant information, found that the use
Responsive layouts can provide a more comfortable interface and a better user experience for users of different terminals, and with the current popularity of large-screen mobile devices, the "general trend" to describe is not too. As more and more
Let's look at the classic blue navigation effect that CSS draws:
The material used:
Code:
the latest Thunderbolt see navigation Home Movie & Lt;li> Drama Arts Anime Comics Entertainment Leaderboard Blockbusters-premiere-new
method One:Use border to set the border, the element has height and width
.triangle { transform:rotate (45deg); Display:block; width:12px; height:12px; border:1px solid #9e9e9e;
1. Inheritance
Some styles of CSS are inherited, so what is inheritance? Inheritance is a rule that allows a style to be applied not only to a particular HTML tag element, but also to its descendants. For example, the following code: If a color is
We all know that link and @import can introduce CSS style sheets, so what's the difference between the two? Let's talk about their respective links, then tell them the difference.
Link link in the way:
How to @import import:
Priority:
I first say how to make a triangle, I believe that everyone in the normal time to visit the site will see some of the navigation bar triangle bar, such as:
NetEase homepage of the Head menu bar, there will be such a triangle
When the mouse passes,
There are 3 properties and layouts as well as box creation related to: ' Display ', ' position ' and ' float ', interacting with each other as follows:
If the ' Display ' value is ' none ', then ' position ' and ' float ' have no effect. In this
The effect of using CSS to automatically populate the next column with four rows per column, after loading a column. The topic is shown in figures as follows:
If you change the title to "only use CSS to implement four columns per row, the data
We can animate through CSS, and here's what I'm going to show you are the rotation of P, the animation of color transitions
move the mouse over the rectangle below: two seconds to rotate the
The effect of their own test, very gorgeous
Don't say a lot of nonsense, directly to the people put the code
The key code is as follows:
After I show pictures
The above is a small part of the CSS to introduce the implementation of the hidden and display
The following small series for everyone to bring a brief talk about CSS and @import differences and usage. Small series feel very good, now share to everyone, also for everyone to make a reference. Let's take a look at it with a little knitting.
Special dazzling three-dimensional album sharing out, I hope you like!
three-dimensional animation & Lt;img src= "images/4.jpg"/>
Here are the following:
To use animation animations, familiarize yourself with the grammar rules of Keyframes,keyframes: Naming is preceded by "@keyframes", followed by the "name of the animation" plus a pair of curly braces "{}", which are the different time-period style
The following small series for everyone to bring a brief discussion on the level of CSS processing problems. Small series feel very good, now share to everyone, also for everyone to make a reference. Follow the small series together to see it, I
Let's take a look .
CSS3 pseudo-Class targetUsing the target feature, you can switch the tab effect of the pure CSS.
The sample code is as follows
The code is as follows:
tab1 tab2 tab3 tab1tab2 tab3
The most critical code
The code is as
The floating box can be moved left or right until its outer edge touches the border of the containing box or another floating box.
Because the float box is not in the normal flow of the document, the block in the normal flow of the document
Previously cleared floats are always added after the element that you want to clear floating
or written in the BR tag to solve, but this will increase the non-semantic tags, the following pseudo-class implementation, compatible with a variety of
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