摘要: <input type="checkbox" onclick="selall(this)" />全选/全不选 <input type="checkbox" class="chk" />选项一 <input type="checkbox" class="chk" />选项二 <input type=" 阅读全文
posted @ 2016-10-10 13:34 呦呦呦呦呦呦呦呦 阅读(98) 评论(0) 推荐(0) 编辑
摘要: 直接上代码: css部分代码 .pageCss { float: right; width: auto; height: 30px; line-height: 30px; margin-right: 10px;} .pageCss a { float: left; color: #000; marg 阅读全文
posted @ 2016-10-10 10:54 呦呦呦呦呦呦呦呦 阅读(531) 评论(0) 推荐(0) 编辑
摘要: http://www.mmtrix.com/evaluate/result 阅读全文
posted @ 2016-10-10 09:09 呦呦呦呦呦呦呦呦 阅读(184) 评论(0) 推荐(0) 编辑
摘要: 直接上代码,不信自己测。 <html xmlns="http://www.w3.org/1999/xhtml"><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><head> <title>jquery</tit 阅读全文
posted @ 2016-10-09 10:59 呦呦呦呦呦呦呦呦 阅读(2880) 评论(0) 推荐(0) 编辑
摘要: 有时候,操作按钮需要回车键 直接上代码: //回车事件document.onkeydown = function (e) { var ev = document.all ? window.event : e; if (ev.keyCode == 13) { if ($("input[type='bu 阅读全文
posted @ 2016-09-30 10:05 呦呦呦呦呦呦呦呦 阅读(106) 评论(0) 推荐(0) 编辑
摘要: 道友们,今天由贫道讲一下bootcss的编码规范: 首先黄金定律:一个项目一定要有一套编码规范,无伦项目有多少人参与都要一致。 用两个空格来代替制表符(tab) -- 这是唯一能保证在所有环境下获得一致展现的方法。 嵌套元素应当缩进一次(即两个空格)。 对于属性的定义,确保全部使用双引号,绝不要使用 阅读全文
posted @ 2016-09-29 17:24 呦呦呦呦呦呦呦呦 阅读(360) 评论(0) 推荐(0) 编辑
摘要: 网页代码: <!DOCTYPE html><html xmlns="http://www.w3.org/1999/xhtml"><head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>固定 阅读全文
posted @ 2016-09-29 17:08 呦呦呦呦呦呦呦呦 阅读(119) 评论(0) 推荐(0) 编辑
摘要: ctrl+k+c 注释 ctrl+k+u 取消注释 ctrl+m+t 折叠代码 ctrl+t 取消折叠 ctrl+k+d 调节代码 ctrl+f 查找 ctrl+g 跳转行(一般调试的时候显示哪行报错,这样我就可以跳到这一行上) 阅读全文
posted @ 2016-09-29 16:56 呦呦呦呦呦呦呦呦 阅读(111) 评论(0) 推荐(0) 编辑
摘要: 数据库中新闻标题长度度不一致,怎样实现这种效果呢? 方法: string temp = dr["supplyNews_Name"].ToString(); 获取数据库中该字段 if (temp.Length > 10) { temp = temp.Substring(0, 10) + "..."; 阅读全文
posted @ 2016-09-29 15:30 呦呦呦呦呦呦呦呦 阅读(245) 评论(0) 推荐(0) 编辑
摘要: 今天遇到一个问题,我要在文本框中输入一个网址链接,使其跳转。但是如何验证,我首先想到了正则表达式。对的,就是你想的那样,我对正则一知半解,但在我哥哥帮助下,最终是 实现 了效果。在此,来一发,分享一下。 首先,当然是jquery 引入。 (2).获取链接的文本框的值:var jumpurl = $( 阅读全文
posted @ 2016-09-29 14:17 呦呦呦呦呦呦呦呦 阅读(1157) 评论(0) 推荐(0) 编辑