<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title></title> <style type="text/css"> .btn{ width: 100px; height: 50px; background-color: #cc0000; color: #ffffff; line-height: 50px; text-align: center; } .arrow{ display: inline-block; width: 10px; height: 10px; background-color: red; background: url("./img/icon.png") 0px -355px no-repeat; } </style> </head> <body> <div class="btn"> 测试 <span class="arrow"></span> </div> </body> </html>
这是这样背景图
我要求不高,只要能在谷歌和火狐浏览器里面背景能透明即可
很着急,请各位大神帮我看看如何处理