请选择 进入手机版 | 继续访问电脑版
点点网模板设计大赛 phpchina

经典论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

蓝色理想 最新研发动态 用悬赏 三天解决问题 解决访问速度慢 论坛支持农历生日 - 地图任务 - 给官方提建议

论坛活动及任务 归纳网站最新活动 更新邮件保护帐号安全 第一季积分兑换活动 - 12周年上海聚会照片

万元奖励等你拿——点点网模板设计大赛 畅销译文征名——让最火的畅销书,印上你的标签 联系招聘客服 蓝色理想帮你找工作!

查看: 153|回复: 1

请高手帮我在下边加入能让图片自适应分辨率的代码~~谢谢~~~~~~~~ [复制链接]

nounluck 楼主
帖子
1
体力
6
威望
0
发表于 2011-12-7 19:47:14 |显示全部楼层
<div>
&nbsp;</div>
<div>
&nbsp;</div>
<div>
&nbsp;</div>
<div>
&nbsp;</div>
<div class="box tshop-pbsm tshop-pbsm-ssd10c" data-spm="1103TrqR.1-8wjZW.3-4OR*R2">
<div class="shop-custom no-border">
  <div class="bd">
   <div class="custom-area">
    <div class="tshop-pbsm-sfs10c">
     <div class="shop-bbs">
      &nbsp;</div>
    </div>
   </div>
  </div>
</div>
</div>
<div class="box tshop-pbsm tshop-pbsm-ssd10c" data-spm="1103TrqR.1-8wjZW.3-4OR*R1">
<div class="shop-custom no-border">
  <div class="bd">
   <div class="custom-area">
    <div class="box tshop-pbsm tshop-pbsm-ssd10c" data-spm="1100065398505.111862844.4887138497">
     <div class="shop-custom no-border">
      <div class="bd">
       <div class="custom-area">
        <div class="box tshop-pbsm tshop-pbsm-ssd10c" data-spm="1100068148244.141895718.4835683530">
         <div class="shop-custom no-border">
          <div class="bd">
           <div class="custom-area">
            <div class="tshop-pbsm-sfs10c">
             <div class="shop-bbs">
              <div class="handle" style="z-index: 200; top: 90px; left: -45px">
               <table border="0" cellpadding="0" cellspacing="0" class="">
                <tbody>
                 <tr>
                  <td colspan="2" style="text-align: center">
                   <img alt="" src="http://20.www37.babidou.com/pic/2011/10/29/nounluck/%E5%BA%97%E9%9D%A2%E8%A3%85%E4%BF%AE/%E5%9C%A3%E8%AF%9E/%E5%BA%97%E6%8B%9BTTG.jpg" style="margin: 0px; float: none" /></td>
                 </tr>
                </tbody>
                <tbody>
                 <tr>
                 </tr>
                </tbody>
               </table>
               <div>
                &nbsp;</div>
               <div>
                &nbsp;</div>
               <div>
                &nbsp;</div>
              </div>
             </div>
            </div>
           </div>
          </div>
         </div>
        </div>
       </div>
      </div>
     </div>
    </div>
   </div>
  </div>
</div>
</div>
<div class="box tshop-pbsm tshop-pbsm-ssd10c" data-spm="1103TrqR.1-8wjZW.3-4OR*R6">
<div class="shop-custom no-border">
  <div class="bd">
   <div class="custom-area">
    <div class="J_TWidget tstart-msgtip" data-widget-config="{'fixed': true}" data-widget-type="Compatible" style="width: 25px; height: auto; top: 50px; left: 20px">
     <div class="cc-pf-left">
      &nbsp;</div>
    </div>
    <div class="J_TWidget hidden" data-widget-config="{'trigger':'.cc-pf-left','align':{'node':'.cc-pf-left','offset':[0,0],'points':['tl','tl']}}" data-widget-type="Popup">
     <table align="left" border="0" cellpadding="0" cellspacing="0" class="" height="36" width="124">
      <tbody>
       <tr>
        <td>
        </td>
       </tr>
      </tbody>
     </table>
     <div>
      &nbsp;</div>
     <div>
      &nbsp;</div>
     <div>
      &nbsp;</div>
     <div>
      &nbsp;</div>
     <div>
      &nbsp;</div>
    </div>
   </div>
  </div>
</div>
</div>

会武术的科学家

实习版主

帖子
2041
体力
5570
威望
45
居住地
浙江省 杭州市
发表于 2011-12-8 10:12:55 |显示全部楼层
我估计你是要做图片自动适应窗口宽度,然后左右两侧的就隐藏掉是吗?
这个其实不难的,你需要需要把这个图片做成一个DIV,然后设置background:ur(path) 50% 0 no-repeat;

您需要登录后才可以回帖 登录 | 注册

Archiver|手机版|安久科技提供CDN|blueidea.com ( 京ICP备05002321号 )  

GMT+8, 2012-1-15 00:03 , Processed in 0.305858 second(s), 10 queries , Gzip On.

Powered by Discuz! X2

© 2001-2011 Comsenz Inc.

回顶部