随笔分类 - HTML
摘要:一、jQuery 1. jQuery获取与当前元素同级的元素个数$(tr).parent('tbody').children('tr').length; 二、JSON 1. 将文本转换成 json 对象JSON.parse(GX_row); 2. 将 json 对象转换成文本JSON.str...
阅读全文
摘要:转自:http://www.cnblogs.com/12go/archive/2011/12/01/2270756.html<style type="text/css">.hover{background-color:red;}</style><table id="table1" border="1" cellpadding="0" cellspacing="0"><tr><th><input type="checkbo
阅读全文
摘要:转自:http://blog.sina.com.cn/s/blog_84f5d20b0100wpe0.html<input type="text" name="haha1" readonly><br> //文本域可点击但无法输入<input type="text" name="haha3" disabled> //文本变成灰色不可修改<input type="text" name="haha2" onfocus="this.
阅读全文
摘要:1. 在html头中加入以下3句话,可以防止大部分浏览器缓存<metahttp-equiv="pragma"content="no-cache"><metahttp-equiv="Cache-Control"content="no-cache, must-revalidate"><metahttp-equiv="expires"content="Wed, 26 Feb 1997 08:21:57 GMT">2. 或者js中加入类似下面的代码
阅读全文