Inspired by the comments in an alt attribute article of an image yesterday, the author briefly summarized some of the Processing Methods of images on the webpage.
2. automatically zoom out the image
Some images are often large, and the uploaded images will fill the screen. The following example detects the image width. If the image width is greater than "screen width-350 ",
The image will be displayed with the size of "screen width-350.
Source image
Set the size of the graph
Screen. width-350) this. width = screen. width-350 ">
3 disable auto-scaling of large-sized images in IE6
The source image is automatically reduced.
Set not to zoom in
4. Remove the region wireframes and hyperlinks on the hotspot map.
The Code is as follows:
5. You can control the size of the uploaded image.
Processing the JS of the uploaded image size
The Code is as follows: