摘要: //扩展方法$.formhtml,解决firefox中html()方法得不到修改input值后的html代码(function ($) { var oldHTML = $.fn.html; $.fn.formhtml = function () { if (arguments.length) return oldHTML.apply(this, arguments); $("input,textarea,button", this).each(function () { this.setAttribute('value', this.value); }); 阅读全文
posted @ 2013-09-05 17:24 为乐而来 阅读(397) 评论(0) 推荐(0) 编辑
摘要: //固定行宽table-layout:fixed;//自动换行word-break :break-all;word-wrap:break-wordGridView.Attributes.Add("style", "table-layout:fixed;word-break :break-all;word-wrap:break-word");鼠标放在Table的Tr上变色先在$(function () { //只要表格定义属性OnMouseoverChangeColor='true'就加事件鼠标放表格上变色 //相隔二行间背景颜色不同 // 阅读全文
posted @ 2013-09-05 17:23 为乐而来 阅读(551) 评论(0) 推荐(0) 编辑