<div class="header"> <a class="new-a-back" href="javascript:history.back();"> <span><img src="images/iconfont-fanhui.png"></span> </a> <!-- .new-a-back { .new-a-back span { height: 40px; background: url(../images/icon_fh.png) no-repeat 0px 0px/18px 18px; position: absolute; display: block; /* bolck是此元素将显示为块级元素,此元素前后会带有换行符。不是块元素则高宽无效 */ 45px; height: 35px; } 50px; text-indent: 17px; .new-a-back span img { color: #FFF; 25px; font-size: 14px; } padding-top: 8px; margin-left: -10px;} --> <h2>购物资讯</h2> <!-- .header h2 { color: #fff; font-size: 16px; font-weight: normal; height: 44px; line-height: 44px; text-align: center; font-weight: bold; } --> <div class="head_right" style="top:13px;"> <!-- .head_right { .head_right a { position: absolute; color: #FFFFFF; top: 15px; font-size: 12px; right: 10px; padding-top: 5px; } text-decoration: none;} --> <a href="index.html" style="color:#FFFFFF; font-size:14px;">返回首页</a> </div> </div>