When individuals are doing web pages or blogging, sometimes they want to do some retouching of images, such as highlights, rounded corners, shadows, etc. Of course, we can use image processing software. But this has two bad points, one is the need for additional photoshop and other steps, the second is the destruction of the original image :sad:. There are already many methods using css to dynamically process pictures on the Internet, but the css method requires an additional set of two div markers outside the picture to achieve the offset effect of the shadow, here is to introduce a method using js, very simple, only two steps: