, PNG . .. , , /, PNG . PNG 4 , , , , .
, "" "", overflow:hidden;.
:
You have a 500 x 500 image. You want a 100 x 100 icon. If you change the size by HTML, it will be a mess, so put a div down, add background-imageyour 500 x 500 image and overflow:hidden;with width:100px;height:100px;. Then create another div, apply position:absolute;left:0;top:0;z-index:2;width:100px;height:100px;, in this place your transparent PNG.
Then on your page;
<div style="background-image:url('/images/thumbnail.jpg');width:100px;height:100px;overflow:hidden;z-index:1;">
<div style="position:absolute;left:0;top:0;z-index:2;width:100px;height:100px;">
<a href="/ifclickable.htm"><img src="/images/transparent.png" alt="alt for img here" /></a>
</div>
</div>
This means that your icon cannot be broken, and all you need to worry about is the size of your download.
Hope this helps.
source
share