随笔分类 -  html

摘要:.news-msg{ // padding: 5px; white-space: pre-wrap; word-wrap: break-word; font-family:'微软雅黑'; } 阅读全文
posted @ 2017-09-04 16:53 Lonely,lonelyBurning 阅读(421) 评论(0) 推荐(1) 编辑
摘要:1、在 div为contenteditable = true 中; 换行显示;就使用了pre 标签; 避免了/n 和空格的转换;实现了ctrl + enter 换行;显示的问题; 2、如何超过了div显示省略号; 项目中是定义公共类; 阅读全文
posted @ 2017-04-06 11:18 Lonely,lonelyBurning 阅读(284) 评论(0) 推荐(0) 编辑
摘要:angular.module('indexdb', []) .factory('indexDbJs', [function() { const CurDBVersion = 10000; window.indexedDB = window.indexedDB || window.mozIndexedDB || window.webkitIndexedDB... 阅读全文
posted @ 2017-03-29 11:47 Lonely,lonelyBurning 阅读(2229) 评论(0) 推荐(0) 编辑
摘要:菜鸟教程(runoob.com) 点击太阳或其他行星,注意变化: 阅读全文
posted @ 2017-03-28 15:26 Lonely,lonelyBurning 阅读(278) 评论(0) 推荐(0) 编辑
摘要:meta name="viewport" content="width=device-width,initial-scale=1.0" 解释 <meta name="viewport" content="width=device-width,initial-scale=1.0"> content属性 阅读全文
posted @ 2017-03-28 11:31 Lonely,lonelyBurning 阅读(156) 评论(0) 推荐(0) 编辑
摘要:聊一聊HTML <pre>标签 我们经常会在要保持文本格式的时候使用pre标签,比如当我们要展示源代码的时候,只要放一个pre标签,然后把源代码直接复制,粘贴,然后在页面上就可以保持好格式。不会像放在其它标签里那样,把换行和空格都自动折叠了。这里看一下pre是如何工作的呢? pre标签 HTML里的 阅读全文
posted @ 2017-03-20 19:13 Lonely,lonelyBurning 阅读(667) 评论(0) 推荐(0) 编辑
摘要:by zhangxinxu from http://www.zhangxinxu.com 本文地址:http://www.zhangxinxu.com/wordpress/?p=1058 原文地址:http://net…html5-features-tips-and-techniques…/ 原文作者:Jeffrey Way 翻译小编:张鑫旭 //zxx:以下为翻译全文,本着语言生动和本土化之... 阅读全文
posted @ 2017-02-22 10:05 Lonely,lonelyBurning 阅读(176) 评论(0) 推荐(0) 编辑
摘要:有时候,我们希望表单中的文本框是只读的,让用户不能修改其中的信息,如使 的内容,"中国"两个字不可以修改。实现的方式归纳一下,有如下几种。 方法1: onfocus=this.blur() 当鼠标放不上就离开焦点 方法2:readonly 方法3: disabled 完整的例子: disabled="true" 此果文字会变成灰色,不可编辑。 readOnly="true"... 阅读全文
posted @ 2017-02-20 11:38 Lonely,lonelyBurning 阅读(4107) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示