Simulate a select with code to obtain data after submission
HTML Code
Copy Code code as follows:
Please select City
Beijing
Shanghai
Wuhan
Guangzhou
JavaScript Code
Copy Code code as
First look at the effect:
Code:
Copy Code code as follows:
good test
Menu1
submenu1
submenu2
submenu3
SubMenu4
Menu2
submenu1
submenu2
submenu3
SubMenu4
Menu3
submenu1
Share a bubble tip box, the practice of the techniques are: (1) JS response to the mouse event; (2) make a pure CSS triangle.
Effect this way:
This is HTML:
Copy Code code as follows:
Bubbles dialog Box
Bubble
1. Dynamically loading Js,css files (with native JS and jquery)
IFRAME structure:
FRAME0 (parent)
Frame2 (sub)
Frame3 (sub)
Triggering events in Frame2, dynamically loading JS, CSS files, and DOM elements into Frame3?
* Can be called between
This article is an example of the JS+CSS implementation of the Japanese Portal Site Classic tab navigation effect. Share to everyone for your reference. Specifically as follows:
Here is the introduction of a Japanese portal from the Css+javascript
The example of this article introduces the use of JS to generate blog directory and CSS Custom blog methods, share for everyone to reference, the specific content as follows
1.JS Code
Want to generate a directory, many say need JS Modify
The example of this article describes the JS+CSS implementation of collapsible expanded multilevel menu effect. Share to everyone for your reference. Specifically as follows:
This is a JS+CSS implementation of the multi-level folding menu, foldable
Want to reach the mouse hover to element A, show another element B, can be implemented through the CSS or JS implementation.
Js:
Write two functions: Mouseenter,mouseleave, for example:
$ ("#a"). MouseEnter (function () {
$ ("#b"). Show
This article mainly introduces the use of CSS how to achieve the effect of relief, the text gives a detailed sample code and explanation, I believe that there is a certain reference value for everyone, interested in the following people to see
This part of the final results of the finished product is amazing, that is, the legendary pure CSS level six menu. The most powerful part of this thing is compatible with all major browsers (IE6,IE8,MAXTHON2.5,FIREFOX3.5,OPERA10,SAFARI4 and Chrome2),
Brief tutorials
Hamburgers is an ultra-cool hamburger icon Morphing animation effect CSS3 Animation library. This set of hamburger icon animations includes 18 different types of hamburger morph animations, and you can customize your own hamburger
Brief tutorials
This is a super cool CSS3 loading loading animation effect. This loading animation uses CSS3CSS3 animation animation to make, it is simple code, the effect is very cool.
How to use
HTML structure
Using a element as the container
Contact CSS3 So long, always to use the time directly to use, but not a good sum summed up, it is here to comb it.
CSS3 border:
Rounded border:
Key: Border-radius
rounded Border
CSS3 Border Shadow:
Key: Box-shadow
Syntax: Object selector
Instance
Center aligns an item within an Elastic object element:
# mybluep
{
align - self : center
}
Handbook Network (www.shouce.ren) Red Blue Green div with more content note the: Align-self
How to detect CSS features
If we want to detect whether a CSS property supports
var dom = document.createelement (' P '), if (' Textshadow ' in Dom.style) { alert (' Support Textshadow attribute ')}else { alert (' Textshadow attribute ' not
HTML is always so amazing
From "Hardware Acceleration"
A note at the beginning of the year, sorted out at leisure.
Many online articles say that it is recommended to open the hardware acceleration of the browser, so that the page rendering speed,
Animations implemented:
Pre-loaded animation one: Double spin ring
A circle that rotates in two different directions. The speed of our inner circle defines a CSS code that is twice times faster than the outer ring rate.Realize:
HTML code:
Recently, I stumbled across an interesting question. I want to randomly set the value of the animation-duration. This is a non-random example:
This is an animation I wrote in CSS:
@keyframes Flicker { 0% { opacity:1; } 100% { opacity:0; }}
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
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