摘要: html: <div class="editor" contenteditable="true"></div> css: .editor{ width: 580px; height: 65px; border: 0px; outline: 0; //设置边框为0; margin-bottom: 5p 阅读全文
posted @ 2017-02-17 16:49 Monroe_Yu 阅读(659) 评论(0) 推荐(0) 编辑
摘要: js 阅读全文
posted @ 2017-02-17 16:47 Monroe_Yu 阅读(174) 评论(0) 推荐(0) 编辑
摘要: 可以拖拽的div 阅读全文
posted @ 2017-02-17 16:42 Monroe_Yu 阅读(159) 评论(0) 推荐(0) 编辑
摘要: 无标题文档 阅读全文
posted @ 2017-02-17 16:37 Monroe_Yu 阅读(133) 评论(0) 推荐(0) 编辑
摘要: 用户名: 密码: ... 阅读全文
posted @ 2017-02-17 16:34 Monroe_Yu 阅读(193) 评论(0) 推荐(0) 编辑
摘要: 1、取消选取、防止复制 <body selectStart="return false"> </body> 2、不允许粘贴 <body onpaste="return false"> </body> 3、防止复制 oncopy="return false" 4、防止剪切 oncut="return 阅读全文
posted @ 2017-02-17 14:01 Monroe_Yu 阅读(136) 评论(0) 推荐(0) 编辑
摘要: 明天你是否会想起曾经我写的日记 一个人的时候不是不像你 一个人的时候只是怕想你 一个人的时候如果下起了雨 我... 阅读全文
posted @ 2017-02-17 13:34 Monroe_Yu 阅读(987) 评论(0) 推荐(0) 编辑
摘要: hello!marquee the day you went the day! ... 阅读全文
posted @ 2017-02-17 10:42 Monroe_Yu 阅读(226) 评论(0) 推荐(0) 编辑
摘要: 1、 window.onload必须等到网页中所有的内容加载完(包含图片)才执行 document.ready网页中所有DOM结构绘制完执行,可能DOM并没有加载完 所有document.ready比window.onload要先执行 2、 window.onload只能有一个 document.r 阅读全文
posted @ 2017-02-17 10:08 Monroe_Yu 阅读(148) 评论(0) 推荐(0) 编辑