行内元素: a, b, span, img, input, strong, select, label, em, button, textarea 块级元素: div, ul, li, dl, dt, dd, p, h1-h6, blockquote 空元素: br, meta, hr, link, ...
分类:
其他好文 时间:
2016-04-13 23:30:04
阅读次数:
209
这是一个用jQuery实现的, 自动调整textarea高度, 非常的好!但原作者已经把它的相关描述页面移除了, 这里做个备份吧~但js路径还在:full: http://james.padolsey.com/demos/plugins/jQuery/autoresize.jquery.jsmini ...
分类:
Web程序 时间:
2016-04-13 18:30:55
阅读次数:
227
IE使用'propertychange'事件监听,其它浏览器使用'input'事件测试了IE7-10, Chrome, FF, 输入没有问题.?但在IE9下, 删除, 回退, Ctrl+X 没有监听到! 在线DEMO: http://output.jsbin.com/jaladafene ...
分类:
其他好文 时间:
2016-04-13 18:26:30
阅读次数:
129
总体概念 常见的块级元素有 DIV, FORM, TABLE, P, PRE, H1~H6, DL, OL, UL 等。 常见的内联元素有 SPAN, A, STRONG, EM, LABEL, INPUT, SELECT, TEXTAREA, IMG, BR 等。 block,inline和inl ...
分类:
其他好文 时间:
2016-04-11 14:18:21
阅读次数:
115
鼠标光标属性-----cursor:pointer;边框属性------border:1pxsolid#f00列表样式-------list-style:none;尺寸样式:width:500px;height:300px文本域:textarea取消右下角下拉框---resize:none表格样式:collapse:collapse两个表格边框合并外边距:margin-left:20px;//..
分类:
Web程序 时间:
2016-04-10 01:28:29
阅读次数:
360
ueditor在线编辑器插件 地址:http://ueditor.baidu.com/website/ 试用体验: 帮助文档:http://fex.baidu.com/ueditor/ 实操 引入文件 需要为textarea定义个一个ID 属性 有兴趣的了解 sea.js 解决js顺序加载的问题 使... ...
分类:
其他好文 时间:
2016-04-09 16:55:52
阅读次数:
344
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 随着textarea 输入内容 自动增加高度 <script type="text/javascript"> $(".input_textarea").each(function(){ this.style.height= ...
分类:
其他好文 时间:
2016-04-08 10:14:19
阅读次数:
191
首先下载CKEditor。 下载地址:点击打开链接 将下载完的CKEditor解压而且导入到项目中。 然后在页面引入CKEditor <script type="text/javascript" src="ckeditor/ckeditor.js"></script>在要编辑的textarea标签中 ...
分类:
其他好文 时间:
2016-04-08 10:14:09
阅读次数:
138
AngularJS ng-model 指令 ng-model 指令用于绑定应用程序数据到 HTML 控制器(input, select, textarea)的值。 ng-model 指令 ng-model 指令可以将输入域的值与 AngularJS 创建的变量绑定。 实例 <div ng-app=" ...
分类:
Web程序 时间:
2016-04-07 09:41:42
阅读次数:
193
功能当页面加载完成?后,用户键盘按下某个键后,jQuery能够捕获到一个数字,从而执行一系列动作。格式123456789101112$(function(){ $('body').delegate('textarea','keydown',function(e){ if(e.which == 13)... ...
分类:
Web程序 时间:
2016-04-07 00:55:48
阅读次数:
343