写的htc的数据表格
2024-09-06 12:43:39
供稿:网友
作者:xmg (小马哥)
代码如下:
<HTML>
<HEAD>
<TITLE></TITLE>
</HEAD>
<style>
body{font-size:12}
table,input,button,select,textarea,b{font-size:12;font-family:宋体}
body{background:#ECE9D8}
td{border:1px solid #c0c0c0;display:inline}
.GridBorder{background:#ece9d8;border:1px solid #000;border-top:1px solid #FFF;border-left:1px solid #FFF;text-align:center;WORD-BREAK:break-all}
</style>
<script>
if(document.all){
Event.prototype.__defineGetter__("srcElement",function(){var node=this.target;while(node.nodeType!=1){node=node.parentNode}return node})
Event.prototype.__defineGetter__("x",function(){return this.clientX+2})
Event.prototype.__defineGetter__("y",function(){return this.clientY+2})
}
function $(obj){return document.getElementById(obj)}
</script>
<BODY>
<table id=datagrid>
<tr>
<td width=15></td>
<td width=50>字段一</td>
<td width=50>字段二</td>
<td width=50>字段三</td>
<td width=50>字段四</td>
<td width=50>字段五</td>
<td width=50>字段六</td>
<td width=50>字段七</td>
<td width=50>字段八</td>
<td width=50>字段九</td>
</tr>
<tr>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td></td>
<td></td>