摘要:
jqgrid功能貌似还不错,但大多都是php环境下的,趁着无聊折腾了下,这里折腾的是返回json数据的形式..先上截图,有图有真相..新建html页面如图所示引入相关资源文件,<script src="i18n/grid.locale-cn.js" type="text/javascript"></script>为本地化文件,各个参数详细信息就不多说了,试试就知道了..hd.aspx处理文件代码,这里没有进行值判断和访问数据库,只是模拟了下,所以没有实现排序功能,可以翻页,具体想实现什么功能可以修改后台程序,它会把相应的参数传给你 阅读全文
随笔档案-2011年07月
ie支持css3圆角实现的俩种方式
2011-07-22 10:31 by 飞魚, 482 阅读, 收藏, 编辑
摘要:
1、curvycorners.js引用实现<title>css3圆角</title><script src="curvycorners.js" type="text/javascript"></script><style> .roundedCorners { width: 200px; height: 200px; padding: 10px; background-color: Beige; -webkit-border-radius: 10px; -moz-border-radius: 10 阅读全文
css盒相关样式
2011-07-21 13:30 by 飞魚, 348 阅读, 收藏, 编辑
摘要:
display: inline-block;使元素在一行显示,且能设置高宽,vertical-align设置对齐方式<style> span { display: inline-block; background-color: Aqua; width: 50px; vertical-align:bottom; }</style><span>11111</span> <span style="height: 50px">22222</span>display:list-item使元素像li方式表示< 阅读全文
javascript 获取元素计算后的样式及删除style中指定的样式属性
2011-07-16 13:17 by 飞魚, 1649 阅读, 收藏, 编辑
摘要:
<style> #mytest { width: 100px; height: 100px; border: 1px solid blue; }</style><div id="mytest" style="color: red; border: 1px solid red;"></div><script type="text/javascript">// <![CDATA[ var div = document.getElementById("mytest& 阅读全文
javascript instanceof、isPrototypeOf、hasOwnProperty、in的使用
2011-07-07 14:11 by 飞魚, 1082 阅读, 收藏, 编辑
摘要:
<script type="text/javascript"><!-- function Person() { this.name = "ygm"; } var p = new Person(); alert("对象p属于Object类型:" + (p instanceof Object)); alert("对象p属于Person类型:" + (p instanceof Person)); alert("对象p的原型链中是否存在指定类型的原型:" + Person.protot 阅读全文