Common image processing skills

xiaoxiao2021-03-06  14

1. Replace the chain picture alternative picture

[Ctrl A All, prompt: You can modify the code after running] 2, automatic reduction larger graphs often see some pictures very large, upload, display the example below the screen, by detecting IF (this.width> Screen. Width-350) THEN (this.width = screen.width-350) If the width of the picture is greater than "screen width -350", the figure shows "screen width-350".

Original image


Set size map


Set does not narrow down

[Ctrl A All, Tip: You can modify the code after running] 4, go out to browse the picture with IE6.0, show shortcut (print, mailing, sailing, etc.) Method 1: method 2: definition CSS: