Posts with tag HTML

Adding HTML5 and CSS3 Support for IE

Since I started this blog, I never considered the experience of IE users. At that time, my browser was Firefox, and the only use I had for IE was to download Firefox. Now I use Chrome on Windows, Chrome on Mac, and Opera on my phone. I thought I could bid farewell to IE compatibility forever. But I didn't expect to be defeated by the electronic reading room at Hangzhou No. 2 High School. Firefox installer: 20MB. Chrome installer: 30MB. They don't seem large, right? But the electronic reading room apparently uses QoS for smoother web browsing. QoS is fine, but it has bugs—the average speed per machine there is 50Kbps. With only half an hour of internet access per visit, spending over ten minutes downloading a browser is truly frustrating! Additionally,...

Illustration for Image Zoom Effect on Mouse Hover

Image Zoom Effect on Mouse Hover

Image zoom effect on hover - Original by Maomihz , Modified by Lan Tian Last night Maomihz asked me to modify a jQuery script to achieve an automatic HD image display effect when hovering over thumbnails. There were two initial bugs: the enlarged image would flicker when hovering over the frame, and the image would exceed the top edge of the screen. My solution was to place the enlarged image under the thumbnail and set a semi-transparent effect for the thumbnail. The top-edge overflow issue was easily resolved by implementing a max() function. Here's the jQuery code: $ ( function () { var x = 22 var y = 540 var a = 0 $ ( 'a.smallimage' ). hover ( function ( e ) { if ( a == 0 ) { $ ( 'body' ). append ( '<div id="bigimage"><img src="' + this . rel + '" alt="" /></div>' )...