随笔分类 -  HTML

摘要:一、jQuery 1. jQuery获取与当前元素同级的元素个数$(tr).parent('tbody').children('tr').length; 二、JSON 1. 将文本转换成 json 对象JSON.parse(GX_row); 2. 将 json 对象转换成文本JSON.str... 阅读全文
posted @ 2013-05-25 22:03 ssfie 阅读(162) 评论(0) 推荐(0) 编辑
摘要:转自: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 阅读全文
posted @ 2013-05-24 22:14 ssfie 阅读(142) 评论(0) 推荐(0) 编辑
摘要:转自: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. 阅读全文
posted @ 2013-05-19 10:42 ssfie 阅读(283) 评论(0) 推荐(0) 编辑
摘要: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中加入类似下面的代码 阅读全文
posted @ 2013-03-15 08:07 ssfie 阅读(499) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示