摘要: 方法一: data为数组类型的,data:[10,20,30]; HTML css js 图标展示 方法二: data为对象类型, HTML js 图标展示 阅读全文
posted @ 2017-07-18 09:48 心随风飞lss 阅读(10099) 评论(0) 推荐(0) 编辑
摘要: var userAgentInfo = navigator.userAgent; if (userAgentInfo.indexOf("Android") > 0 || userAgentInfo.indexOf("iPhone") > 0 || userAgentInfo.indexOf("SymbianOS") > 0 || userAgentInfo.indexOf("Windo... 阅读全文
posted @ 2017-07-14 18:08 心随风飞lss 阅读(239) 评论(0) 推荐(0) 编辑
摘要: 1、在页面输出内容window.write() (该方法如果在页面加载后执行则会覆盖页面所有内容); 2、给标签添加内容a.innerHTML(); 3、在页面弹出alert() / window.alert(),两种写法都可以 4、输出在浏览器控制台console.log(); 阅读全文
posted @ 2017-07-11 11:13 心随风飞lss 阅读(293) 评论(0) 推荐(0) 编辑
摘要: 1、toFixed(num) 方法可把 Number 四舍五入为指定小数位数的数字。(num可取0-20,包括0、20) 2、js方法 3、其他数据处理可参考http://www.w3school.com.cn/jsref/jsref_obj_math.asp 阅读全文
posted @ 2017-07-10 17:45 心随风飞lss 阅读(272) 评论(0) 推荐(0) 编辑
摘要: 对于主流浏览器我们可以用opacity:0.8来设置透明度。 opacity是css3属性,ie不支持怎么办呢?我们可以用下面这种方法来解决: 阅读全文
posted @ 2017-07-10 17:11 心随风飞lss 阅读(854) 评论(0) 推荐(0) 编辑
摘要: 方法有三种: 1、去掉上下间距 2、去掉左右间距 img不换行 3、去掉所有间距 阅读全文
posted @ 2017-07-10 17:04 心随风飞lss 阅读(585) 评论(0) 推荐(0) 编辑
摘要: <div class="demo">让我们荡起双桨,小船儿推开波浪,海面倒映着美丽的白塔,四周环绕着绿树红墙!</div> <style> .demo{ width:50px; border:1px solid pink; white-space:nowrap; text-overflow:elli 阅读全文
posted @ 2017-07-10 16:50 心随风飞lss 阅读(244) 评论(0) 推荐(0) 编辑
摘要: input{vertical-align:middle;} 阅读全文
posted @ 2017-07-10 16:41 心随风飞lss 阅读(660) 评论(0) 推荐(0) 编辑
摘要: 1、不同浏览器标签的margin,padding不同。 css里每个标签margin:0;padding:0;或者*{margin:0;padding:0;} 2、透明度设置 IE里 : filter:alpha(opacity=30); 其他:opccity:0.3; 3、img间距问题 (1)去 阅读全文
posted @ 2017-07-10 16:38 心随风飞lss 阅读(138) 评论(0) 推荐(0) 编辑
摘要: 1、 2、 3、 4、 5、 阅读全文
posted @ 2017-05-04 19:03 心随风飞lss 阅读(127) 评论(0) 推荐(0) 编辑