会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
杨不凡
博客园
首页
新随笔
联系
管理
订阅
上一页
1
···
4
5
6
7
8
9
10
11
12
···
15
下一页
2018年10月10日
弹性布局
摘要: 什么是弹性布局? 用户的文字大小与弹性布局 用户的浏览器默认渲染的文字大小是“16px”,换句话说,Web页面中“body”的文字大小在用户浏览器下默认渲染是“16px”。当然,如果用户愿意他可以改变这种字体大小的设置,用户可以通过UI控件来改变浏览器默认的字体大小。 弹性设计有一个关键地方Web页
阅读全文
posted @ 2018-10-10 21:27 杨不凡
阅读(304)
评论(0)
推荐(0)
2018年9月1日
js的onclick和jq的click以及on和bind的区别
摘要: onclick和click,只能静态绑定点击事件;bind的可以一次绑定多个事件(click/onmouseover等);on可以动态的绑定事件,当页面加载完成调用on即可
阅读全文
posted @ 2018-09-01 10:45 杨不凡
阅读(257)
评论(0)
推荐(0)
2018年8月28日
设置div内的内容不能被选中
摘要: 通过简单的css设置页面的文字无法被选定。 我不能被选中复制 .select{ -webkit-user-select:none; -moz-user-select:none; -ms-user-select:none; user-select:none; } 通过上面的css就能设置,div里面的文字不能被选中复制。
阅读全文
posted @ 2018-08-28 10:03 杨不凡
阅读(1134)
评论(0)
推荐(0)
2018年7月25日
js中!和!!的区别及用法
摘要: js中!的用法是比较灵活的,它除了做逻辑运算常常会用!做类型判断,可以用!与上对象来求得一个布尔值,1、!可将变量转换成boolean类型,null、undefined和空字符串取反都为false,其余都为true。 2、!!常常用来做类型判断,在第一步!(变量)之后再做逻辑取反运算,在js中新手常
阅读全文
posted @ 2018-07-25 09:54 杨不凡
阅读(207)
评论(0)
推荐(0)
2018年7月13日
echars自定义提示框位置
摘要: tooltip: { trigger: 'item', formatter: "{a} {b}: {c} ({d}%)", position:function(p){ //其中p为当前鼠标的位置 return [p[0] + 10, p[1] - 10]; }, extraCssText:'width:160px;height:40px;b...
阅读全文
posted @ 2018-07-13 09:50 杨不凡
阅读(124)
评论(0)
推荐(0)
2018年7月4日
数组排序
摘要: var strObj = JSON.parse(str_pin); //专程json对象 strObj.sort(paixu('val')); //对属性值进行排序 function paixu(property){ retrun function(a,b){ var value1 = a[prop
阅读全文
posted @ 2018-07-04 13:48 杨不凡
阅读(89)
评论(0)
推荐(0)
2018年7月2日
查询一个表的不同数据,显示到一个表
摘要: select cyrdw as s,(select count(*) from caiyong where cylx = 'dantiao' and cyrdw = s),(select count(*) from caiyong where cylx = 'zonghe' and cyrdw =
阅读全文
posted @ 2018-07-02 14:03 杨不凡
阅读(145)
评论(0)
推荐(0)
2018年6月30日
document.body
摘要: 比如document.body,最好是写成document.getElementsByTagName("body")[0];
阅读全文
posted @ 2018-06-30 11:21 杨不凡
阅读(175)
评论(0)
推荐(0)
2018年6月28日
设置fixed,横向滚动条失效
摘要: window.onscroll = function(){ var sl = -Math.max(document.body.scrollLeft,document.documentElement.scrollLeft); document.getElementById("id").style.le
阅读全文
posted @ 2018-06-28 20:33 杨不凡
阅读(496)
评论(0)
推荐(0)
scrollTop
摘要: var top = document.documentElement.scrollTop + document.body.scrollTop; document.documentElement.scrollTop = 3000; $('body,html').animate({scrollTop:3
阅读全文
posted @ 2018-06-28 18:37 杨不凡
阅读(110)
评论(0)
推荐(0)
上一页
1
···
4
5
6
7
8
9
10
11
12
···
15
下一页
公告