网页设计中HTML常会出现的五个错误

来源:网络 作者:佚名 阅读: 字体:[ ] [打印] [关闭]
自定义标签 wzsp 未创建

内容提要:1.网页背景色的设置   犯错机率:很大   普遍性:较广   犯错可能性:懒/不知道   约2年前我曾发现21cn上出现过一次没有设置背景色的情况,当时我用Email通知了他们,自此之后这个问题我从没犯过。   绝大 ……

<script language="javascript">
function MM_setIMG(w,h,d) {
  if (w==null) {w=0}
  if (h==null) {h=0}
  if (w<=h){ if (h>=114 || h==0) {d.height=114}}else{ if (w>=114 || w==0) {d.width=114}}
}
   </script>
   <table width="558" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#CCCCCC">
    <tr>
     <td bgcolor="#FFFFFF" style="padding-left:2px">
      <div id="demoz" style="overflow:hidden;width:550;">
       <table border="0" align="left" cellpadding="0" cellspacing="0" cellspace="0">
        <tr>
         <td id="demo1z" valign="top">
          <table border="0" align="left" cellpadding="0" cellspacing="0" cellspace="0">
           <tr>
            <td valign="top"><table width="150" border="0" cellspacing="0" cellpadding="0">
              <tr>
               <td width="150" align="center"><A href="../featuredproducts/product_jump.asp?product_id=7201"><img src="http://cs.yide.com:9000/commerce/ProductPic/N2006317121650s.jpg" border="0"
                  onLoad="javascript:MM_setIMG(this.width,this.height,this)"></A></td>
              </tr>
              <tr>
               <td><TABLE width="98%" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#F2F2F2"
                 style="BORDER-COLLAPSE: collapse">
                 <TR>
                  <TD width="8%" bgColor="#ffffff" height="25"><IMG height="11" src="http://edu.admin5.com/article/publicimg/arrow04.gif" width="13"></TD>
                  <TD bgColor="#ffffff" height="25">
                   <A href="../featuredproducts/product_jump.asp?product_id=7201">Gucci High Heel ....</A></TD>
                 </TR>
                 <TR>
                  <TD width="8%" bgColor="#ffffff" height="25"><IMG height="11" src="http://edu.admin5.com/article/publicimg/arrow04.gif" width="13"></TD>
                  <TD bgColor="#ffffff" height="25">Gucci高跟系带凉鞋</FONT></TD>
                 </TR>
                 <TR>
                  <TD align="middle" colSpan="2" height="12">
                   <table width="100%" border="0" cellspacing="0" cellpadding="0">
                    <tr>
                     <TD width="44%" bgColor="#ffffff">
                      <IMG height="11" src="http://edu.admin5.com/article/publicimg/arrow04.gif" width="13"> 美元价
                     </TD>
                     <TD bgColor="#ffffff"><font color="red"><B> 525.00 </B></font>
                     </TD>
                    </tr>
                   </table>
                  </TD>
                 </TR>
                </TABLE>
               </td>
              </tr>
             </table>
            </td>
            <td valign="top"><table width="150" border="0" cellspacing="0" cellpadding="0">
              <tr>
               <td width="150" align="center"><A href="../featuredproducts/product_jump.asp?product_id=7200"><img src="http://cs.yide.com:9000/commerce/ProductPic/N20063171299s.jpg" border="0" onLoad="javascript:MM_setIMG(this.width,this.height,this)"></A></td>
              </tr>
              <tr>
               <td><TABLE width="98%" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#F2F2F2"
                 style="BORDER-COLLAPSE: collapse">
                 <TR>
                  <TD width="8%" bgColor="#ffffff" height="25"><IMG height="11" src="http://edu.admin5.com/article/publicimg/arrow04.gif" width="13"></TD>
                  <TD bgColor="#ffffff" height="25">
                   <A href="../featuredproducts/product_jump.asp?product_id=7200">Giuseppe Zanott ....</A></TD>
                 </TR>
                 <TR>
                  <TD width="8%" bgColor="#ffffff" height="25"><IMG height="11" src="http://edu.admin5.com/article/publicimg/arrow04.gif" width="13"></TD>
                  <TD bgColor="#ffffff" height="25">小山羊皮高跟女鞋</FONT></TD>
                 </TR>
                 <TR>
                  <TD align="middle" colSpan="2" height="12">
                   <table width="100%" border="0" cellspacing="0" cellpadding="0">
                    <tr>
                     <TD width="44%" bgColor="#ffffff">
                      <IMG height="11" src="http://edu.admin5.com/article/publicimg/arrow04.gif" width="13"> 美元价
                     </TD>
                     <TD bgColor="#ffffff"><font color="red"><B> 475.00 </B></font>
                     </TD>
                    </tr>
                   </table>
                  </TD>
                 </TR>
                </TABLE>
               </td>
              </tr>
             </table>
            </td>
          
            <td valign="top"><table width="150" border="0" cellspacing="0" cellpadding="0">
              <tr>
               <td width="150" align="center"><A href="../featuredproducts/product_jump.asp?product_id=7170"><img src="http://cs.yide.com:9000/commerce/ProductPic/N2006315153814s.jpg" border="0"
                  onLoad="javascript:MM_setIMG(this.width,this.height,this)"></A></td>
              </tr>
              <tr>
               <td><TABLE width="98%" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#F2F2F2"
                 style="BORDER-COLLAPSE: collapse">
                 <TR>
                  <TD width="8%" bgColor="#ffffff" height="25"><IMG height="11" src="http://edu.admin5.com/article/publicimg/arrow04.gif" width="13"></TD>
                  <TD bgColor="#ffffff" height="25">
                   <A href="../featuredproducts/product_jump.asp?product_id=7170">Prada Python/Cr ....</A></TD>
                 </TR>
                 <TR>
                  <TD width="8%" bgColor="#ffffff" height="25"><IMG height="11" src="http://edu.admin5.com/article/publicimg/arrow04.gif" width="13"></TD>
                  <TD bgColor="#ffffff" height="25">Prada蟒纹/鳄鱼纹高跟鞋</FONT></TD>
                 </TR>
                 <TR>
                  <TD align="middle" colSpan="2" height="12">
                   <table width="100%" border="0" cellspacing="0" cellpadding="0">
                    <tr>
                     <TD width="44%" bgColor="#ffffff">
                      <IMG height="11" src="http://edu.admin5.com/article/publicimg/arrow04.gif" width="13"> 美元价
                     </TD>
                     <TD bgColor="#ffffff"><font color="red"><B> 850.00 </B></font>
                     </TD>
                    </tr>
                   </table>
                  </TD>
                 </TR>
                </TABLE>
               </td>
              </tr>
             </table>
            </td>
           </tr>
          </table>
         </td>
         <td id="demo2z" valign="top"></td>
        </tr>
       </table>
      </div>
     </td>
    </tr>
   </table>
   <script>
var speedz=30
demo2z.innerHTML=demo1z.innerHTML
function Marqueez(){
if(demo2z.offsetWidth-demoz.scrollLeft<=0)
demoz.scrollLeft-=demo1z.offsetWidth
else{
demoz.scrollLeft++
}
}
var MyMarz=setInterval(Marqueez,speedz)
demoz.onmouseover=function() {clearInterval(MyMarz)}
demoz.onmouseout=function() {MyMarz=setInterval(Marqueez,speedz)}
   </script>

&

12下一页
[标签: 网页设计中HTML常会出现的五个错误, ] [打印] [关闭]
站长评论(0) 查看所有评论
相关新闻

热门新闻

推荐新闻