- 博客(8)
- 收藏
- 关注
转载 Vue 绑定数据闪现问题
{{message}}绑定数据时,在真实数据没有出来前会闪现{{message}} 解决方案: 1、给需要的地方v-cloak 2、给v-cloak设置样式 [v-cloak] { display:none; } ...
2017-12-21 15:25:00 152
转载 iphone手不支持keyup事件解决方法
function keyUp(obj){var bind_name = 'input'; if (navigator.userAgent.indexOf("MSIE") != -1){ bind_name = 'propertychange'; } ...
2017-03-31 14:34:00 116
转载 最全前端资源汇集
最全前端资源汇集:http://www.jianshu.com/p/c3dae0951f74?utm_campaign=haruki&utm_content=note&utm_medium=reader_share&utm_source=qq&mType=Gro...
2017-02-20 16:18:00 73
转载 计算字符串长度以及截取字符串长度(英文占1个字符,中文汉字占2个字符)
//判断字符串长度(英文占1个字符,中文汉字占2个字符)var GetLength = function (str) { ///<summary>获得字符串实际长度,中文2,英文1</summary> ///<param name...
2017-02-20 16:09:00 296
转载 HTML转义字符
http://tool.oschina.net/commons?type=2 转载于:https://my.oschina.net/qishan/blog/842135
2017-02-20 16:01:00 62
转载 CSS控制文本单行超出指定宽度后用省略号代替,多行省略号显示
1、单行 .textOverflow{ width:100px; word-break: keep-all; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;}<p class="textOve...
2017-02-20 15:54:00 144
转载 多行文字水平垂直居中
1、单行文字水平垂直居中 .box{ width:200px; height:200px; border:1px solid #000;}.box{ height:30px; line-height:30px;}<p class="box">...
2017-02-20 15:27:00 146
转载 css图片居中的方法
1. .box{ display:table-cell; vertical-align: middle; text-align: center; /* 针对IE的Hack */*display:block;*font-size:175px...
2017-02-20 15:13:00 64
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人