且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

仅将css效果应用于图像的特定部分。

更新时间:2022-12-11 21:41:12

从浏览器和javascripts的角度来看,图像是一个封闭的实体。你可以使用css来制作一部分技巧: http:/ /cssglobe.com/3-easy-and-fast-css-techniques-for-faux-image/ [ ^ ]。

在html5中你还有其他一些工具,如: http://www.html5canvastutorials.com/tutorials/html5-canvas-image-crop/ [ ^ ]。
From browsers''s and javascripts''s point of view, the image is a closed entity. You can make however tricks with css to crop a portion of it: http://cssglobe.com/3-easy-and-fast-css-techniques-for-faux-image/[^].
In html5 you have some other tools too, like this: http://www.html5canvastutorials.com/tutorials/html5-canvas-image-crop/[^].