1. 构建基本逻辑 添加属性 2. 添加功能,设置宽高 3. 利用 json 对象提供参数 由于属性非常多, 但是没有直接的方法去控制用户输入什么 而且 HTML 标签是支持用户自定义属性的. 构造函数的参数就没有办法控制了. 利用 json 对象提供参数 4. 创建 Tr, Td 对象 5. 完整 ...
分类:
其他好文 时间:
2016-10-28 03:14:08
阅读次数:
195
<!DOCTYPEhtml><html><head> <metacharset="utf-8"> <title>表格</title> <style>/* table{ margin:auto; } td{ wclassth:80px; height:30px; text-align:center; font-size:15px; } #ziwo{ height:200px; }*/ ..
分类:
其他好文 时间:
2016-10-28 00:03:46
阅读次数:
172
<table> <caption>user</caption> <tr> <td>编号</td> <td>姓名</td> <td>密码</td> </tr> <% UseDAO im=new UseDAOImple(); List<Use> tableRow=im.queryUse(); for(i ...
分类:
Web程序 时间:
2016-10-27 23:38:27
阅读次数:
285
<table> <thead> <tr> <th>姓名</th> <th>性别</th> <th>暂住地</th> </tr> </thead> <tbody> <tr class="parent" id="row_01"> <td colspan="3">前台设计组</td> </tr> <tr ...
分类:
Web程序 时间:
2016-10-27 13:21:56
阅读次数:
231
<table id="tab" border="1" width="60%" align="center" style="margin-top:20px"> <tr> <td width="20%">序</td> <td >标题</td> <td >描述</td> <td >操作</td> </tr ...
分类:
Web程序 时间:
2016-10-27 12:14:37
阅读次数:
221
ng-repeat 指令可以完美的显示表格。 <table> <tr ng-repeat="x in names"> <td>{{ x.Name }}</td> <td>{{ x.Country }}</td> </tr></table> 1、排序显示,可以使用 orderBy 过滤器: <tabl ...
分类:
Web程序 时间:
2016-10-26 16:35:20
阅读次数:
327
之前我用表格的时候基本是caption、thead、tfoot、tbody、tr、th/td,以为是很完整的表格了,原来发现还有colgroup这东东,确实比直接在td里面colspan好用,另外table的rules和frame属性太经典了!有了它就不需要一个个td的定义border了!因为看过阮 ...
分类:
其他好文 时间:
2016-10-26 16:18:57
阅读次数:
115
js收藏代码~ 1. oncontextmenu="window.event.returnValue=false" 将彻底屏蔽鼠标右键 <table border oncontextmenu=return(false)><td>no</table> 可用于Table 2. <body onselec ...
分类:
Web程序 时间:
2016-10-26 13:09:33
阅读次数:
144
struct info{ int a; char b; struct fd{ int c; int d; }fg;}; 其实我们也可以这样赋值:同样对于其他的类型也是一样的,union enum.... 例如: struct info td = { .a = 100, .b = 100, .fg = ...
分类:
其他好文 时间:
2016-10-23 12:14:25
阅读次数:
382
event.srcElement 可以捕获当前事件作用的对象,如event.srcElement.tagName可以捕获活动标记名称. 注意获取的标记都以大写表示,如"TD","TR","A"等。所以把看过的一些抄下来,不记得的时候再来看看。 代码如下: 1 <script type="text/j ...
分类:
其他好文 时间:
2016-10-22 23:43:55
阅读次数:
240