日期:2014-05-17 浏览次数:20738 次
<style> .product{width:[color=#FF0000]w[/color]px; height:[color=#FF0000]h[/color]px;overflow:hidden;} .icon_1 {background-position:[color=#FF0000] x y[/color]; } .iconLabel{ width:60px; height:60px; float:right; overflow:hidden; background-repeat:no-repeat; background-image:url([color=#FF0000]path[/color]);position:absolute; z-index:99} </style> <div class="product"> <div class="icon_1 iconLabel">这里就是放图标的</div> <img src='imgpath'/> </div>
------解决方案--------------------
大概就是这样
<!DOCTYPE HTML> <html lang=""> <head> <meta charset="gbk"> <title></title> <style type="text/css"> .wrap { width:120px; position:relative; } .tip { position:absolute; right:0; top:0; width:52px; height:62px; background:url(http://www.ycxwdq.com/x2.gif) no-repeat; } </style> </head> <body> <div class="wrap"> <img src="http://avatar.profile.csdn.net/2/B/2/2_yctcsms.jpg" alt="" /> <span class="tip"></span> </div> </body> </html>