1#
参考:http://www.w3school.com.cn/css3/css3_background.asp

使用css3的新特性backgound-size:

  1. background-size:40% 100%;
复制代码

参考示例:

  1. height: 140px;
  2.     background: url(../images/marketHead.jpg) no-repeat;
  3.     background-size:100% 100%;
  4.     -webkit-background-size:100% 100%;
  5.     position: relative;
复制代码