日期:2014-05-16  浏览次数:20387 次

使用jS代码循环添加tr

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1<---strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title></title>
<meta name="keywords" content="" />
<meta name="description" content="" />
<meta http-equiv="cache-control" content="max-age=5"/>
</head>
  <body>
  <!-- start header -->
    <style type="text/css">
    td{text-align:center;border-style:solid;border-width:1px 1px 1px 1px;}
    img{border-style:solid;border-width:1px 1px 1px 1px;}
    p{text-align:center;}
    </style>
    <table align="center">
      <tr>
        <td>
          <img id="image" src="http://192.168.8.1/photo/ch0.jpg?r=Saturday July 31 14:10:27 2013" width="283" height="230"/> 
            <br>192.168.8.01</br>
        </td>
        <td>
          <img id="image" src="http://192.168.8.1/photo/ch1.jpg?r=Saturday July 31 14:10:27 2013" width="283" height="230"/>
            <br>192.168.8.01</br>
        </td>
        <td>
          <img id="image" src="http://192.168.8.1/photo/ch2.jpg?r=Saturday July 31 14:10:27 2013" width="283" height="230"/>
            <br>192.168.8.01</br>
        </td>
        <td>
          <img id="image" src="http://192.168.8.1/photo/ch3.jpg?r=Saturday July 31 14:10:27 2013" width="283" height="230"/>
            <br>192.168.8.01</br>
        </td>
      </tr>
      <tr>
        <td>
          <img id="image" src="http://192.168.8.2/photo/ch0.jpg?r=Saturday July 31 14:10:27 2013" width="283" height="230"/> 
            <br>192.168.8.02</br>
        </td>
        <td>
          <img id="image" src="http://192.168.8.2/photo/ch1.jpg?r=Saturday July 31 14:10:27 2013" width="283" height="230"/>