MaxPower 2017-06-26 02:43 采纳率: 66.7%
浏览 904
已采纳

APP页面超出了规定的640xp怎么办?

我想要所有图片都在640宽度里,现在有图片超出了这个范围,请麻烦高手看看,代码哪里出了问题?

图片说明

 <style>
*{margin:0; padding:0}
body{
    margin:0;
    width: 640xp;
}
a{text-decoration:none;}

#container{max-width:640xp;margin:0 auto;font-family:微软雅黑; font-size:12px; line-height:1.5; text-align:left; color:#000; background:#efefef; padding-top:42px;}
#container img{ display:block; border:none;}
/*common*/
#commonTop{ width:640px; height:42px; margin:0 auto;  position:fixed; top:0; left:0;z-index: 10;}
#commonTop .head{max-width:640px; height:42px;margin:0 auto;background:#f8f8f8;position:relative; text-align:center; font:normal 16px "微软雅黑"; color:#eb1212; line-height:42px;}
#commonTop .head a{width:38px; height:38px; display:block; position:absolute; top:2px; left:0;background:url(images/btnBack.png) no-repeat 0 0;background-size: 38px 38px;}
#commonTop .head a.share { background: url("images/shareIco.png") no-repeat center center; background-size: 23px 18px; left: auto; right: 5px; }
</style>
<body >
<iframe style="position: absolute;" src="http://img01.mall.cmbchina.com/thirdpartystatistics/index.html" width="0" height="0"></iframe>

<header id="commonTop">
    <div class="head">
         <a href="#" onClick="javascript:window.location.href = 'cmblife://popweb';"></a>
              XXXX    <a href="javascript:;" class="share" onClick="doShare();"></a> </div>
</header>
  <section id="container">
  <table width="640xp" border="0" cellspacing="0" cellpadding="0" align="center" style="width:640px;">
    <tr class="container">
        <td>
            <img src="images/01.jpg" alt="" width="100%" border="0"></td>
    </tr>
    <tr>
        <td>
            <img src="images/02.jpg"  alt="" width="100%" border="0"></td>
    </tr>

    <tr>
        <td><a href="http://mall.cmbchina.com" target="_blank"><img src="images/p01.jpg"></a></td>
    </tr>   

    <tr>
            <td><a href="http://mall.cmbchina.com" target="_blank"><img src="images/p02.jpg"></a></td>
            <td><a href="http://mall.cmbchina.com" target="_blank"><img src="images/p03.jpg"></a></td>
    </tr>

    <tr>
           <td><a href="http://mall.cmbchina.com" target="_blank"><img src="images/p04.jpg"></a></td>
           <td><a href="http://mall.cmbchina.com" target="_blank"><img src="images/p05.jpg"></a></td>
    </tr>

请无视下面我自己发的2个回帖吧,看正文即可

  • 写回答

3条回答 默认 最新

  • CN-cheng 2017-06-26 09:37
    关注

    首先把你的几处xp改为px,图片被挤到右边应该是第一排第二张图高度高于第一张

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(2条)

报告相同问题?

悬赏问题

  • ¥15 r语言蛋白组学相关问题
  • ¥15 Python时间序列如何拟合疏系数模型
  • ¥15 求学软件的前人们指明方向🥺
  • ¥50 如何增强飞上天的树莓派的热点信号强度,以使得笔记本可以在地面实现远程桌面连接
  • ¥20 双层网络上信息-疾病传播
  • ¥50 paddlepaddle pinn
  • ¥20 idea运行测试代码报错问题
  • ¥15 网络监控:网络故障告警通知
  • ¥15 django项目运行报编码错误
  • ¥15 STM32驱动继电器