给相同 name就可以了, 类似radio的和checkbox的用法:
You can give each input a different value and keep the same name:
<input type="submit" name="action" value="Submit" />
<input type="submit" name="action" value="Update" />
<input type="submit" name="action" value="Delete" />
php接收:
Then in the code check to see which was triggered:
if ($_… Read More
url2img is a minimalist jQuery plugin used to take a screenshot from an user provided URL by using Google Pagespeed Insights API.
How to use it:
1. Include jQuery JS library and the jQuery url2image.js script in your document.
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<script src="url… Read More
Have a container <div> with a class, and use the > selector. Lets say your container div’s class is “myclass”:
.myclass ul li {
...this will affect both levels of li.
}
.myclass > ul > li {
...this will only affect the first level.
}
.myclass > ul > li > ul > li {
You need to set left:0; right:0;.
This specifies how far to offset the margin edges from the sides of the window.
http://www.w3.org/TR/CSS2/visuren.html#position-props
http://jsfiddle.net/SS6DK/
CSS
.container
{
position: absolute;
top: 15px;
z-index: 2;
width:40%;
max-width: 960px;
min-width: 600px;
height: 60px;
overflow: hidden;
backgro… Read More
n today’s modern web applications, uploading files to the server is a very common feature, however it is often the case that your application must allow multiple file uploads to the server. Today we will build a form that will allow the user to upload multiple files to the server at once using HTML5, jQuery
Usage context
Categories
Animation timing attribute
Value
<begin-value-list>
Animatable
No
Normative document
SVG 1.1 (2nd Edition)
Each value from the <begin-value-list> can be one of the following:
<offset-value>
A Clock-value that represents a point in time relative to the beginning of the SVG document (usually the load or DO… Read More