Use css3 to display the topic News list (numbers) and css3 News list
List several simple rankings of articles.
1. Use list-style to display numbers, dots, letters, or images
2. Use the pseudo element before.
To use this method, you need to set counter-reset: section in the parent label;
Iii. Implement with js. Introduce jquery first.
Compare the three methods, whether from the amount of code, or speci
Research on CSS3 selector and CSS3 Selector
Attribute Selector
[Title]: select an element with the title attribute
[Title = 'hello']: select an element whose attribute is title and whose value is hello.
[Title ~ = 'Hello']: select an element whose attribute is title and the part value is hello. "hello" must be a separate value separated by spaces.
[Title * = 'hello']: select a title attribute that contains
Initial Research on css3 and css3 Animation
Attribute selector:1. Completely matched attribute selector. Is a fully matched string.[Id = article] {Color: red;}2. Contains the matching selector. Contains a specified string.Syntax: [attribute * = value] attribute refers to the attribute name. value refers to the attribute value, which contains the "* =" symbol.[Id * = article] {Color: red;}3. The first charac
Use CSS3 animation to simulate the effect of freely falling small balls and css3 freely falling into the body
Use pure CSS code to simulate the effect of freely falling into the ball:
The html code is as follows:
1
CSS style code:
/* Ball style */# ballDiv {height: 400px; background-color: #333333 ;}# ball {width: 100px; height: 100px; border-radius: 50%; background: -webkit-radial-gradient (center, circle
Use Css3 to create web page images, and use css3 to create Web pages
I have just started the project and have no task at the moment. I don't want to code it. I 've rummaged through all the previously downloaded code and sorted it out, I found that I really don't know how I had so much energy to collect so many messy things, And now it takes a lot of time to sort them out!
Thoughts:
"As long as I don't wak
Css3 clock creation, css3 clock
Knowledge about clock preparation:
I. Calculation of point coordinates on a circle
Ii. Conversion of the hour, minute, and second hands on the clock
Let's look at the clock. The first thing we think of isAngle. Second-hand, minute-hand, hour-handCarryLink.
For example, h, m, s, hour second minute Hour hour minute -)
Ds = s * 6-90;
Dm = m * 6 + (s/60*6)-90;
Dh = h * 30 + (m/6
Based on CSS3, move the mouse over and zoom in to highlight the effect, and css3 mouse over and zoom in
I still remember sharing a CSS 3 image hover and zoom-in effect. Today, we will share a similar CSS move-over and zoom-out effect, but the previous one was an image. This time it was a color block. In fact, we have mastered its CSS principle, any web page element can implement this highlighted CSS 3 anima
Css3 background gradient code, css3 background gradientFrom top to bottom # grad {Background:-webkit-linear-gradient (red, blue );Background:-o-linear-gradient (red, blue );Background:-moz-linear-gradient (red, blue );Background: linear-gradient (red, blue );} From left to right # grad {Background:-webkit-linear-gradient (left, red, blue );Background:-o-linear-gradient (right, red, blue );Background:-moz-li
CSS3-loading animation (3), css3-loading Animation
Sharing continues, and images are not really visible
Online demo: http://liyunpei.xyz/loading.html
11. effect 11
The four balls are respectively contained in four square Divs. The ball is positioned relative to the square (top: 0; left: 0), and the square div is set to rotate so that the ball is located at the four corners, then, the Key Frame Animation i
Css3 inserts content on the page, and css3 inserts content on the page
A.Insert content using Selector
H2: before {
Content: "prefix ";
}
H2: after {
Content: "suffix ";
}
B.The specified element is not inserted.
H2.sample: before {
Content: none;
}
2.Insert Image
A.Insert an image file before the title
H2: before {
Content: url(anwy.jpg );
}
B.SetAltThe attribute value is displayed as the image title (not
Common attributes of CSS3 (1) and css3 attributesSelector attribute selector (selected by TAG attribute)
E [attr]:Indicates that as long as the element
E [attr = val]:Indicates that the value of the element
E [attr * = val]:Indicates that the value of the element
E [attr ^ = val]:Indicates that the value of the element
E [attr $ = val]:Indicates that the value of the element
Pseudo-class selector
Use of CSS3 counters-zhuodi tornado and css3 tornado
Combined with: before to implement a custom list
Body{Counter-reset: dnf;}Div: before{Content: counter (dnf )".";Counter-increment: dnf;}(1)Counter-reset: dnf is parsed to the corresponding element for execution, and the body has only one, so it is only executed once.Resets and defines dnf counters. The default value is 0. You can specify the default va
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.