随笔分类 -  知识点

摘要:background: -webkit-linear-gradient(#0f86d4, #0d64bd); /* Safari 5.1 - 6.0 */ background: -o-linear-gradient(#0f86d4, #0d64bd); /* Opera 11.1 - 12.0 * 阅读全文
posted @ 2016-04-20 10:36 Mu薇 阅读(793) 评论(0) 推荐(0)
摘要://界面高度自适应 var headHeight=$(".header").height();//头部高度 var mainHeight=$(".mainContent").outerHeight()+40;//内容区域高度 var minHeight=$(window).height()-head 阅读全文
posted @ 2016-03-18 14:29 Mu薇 阅读(182) 评论(0) 推荐(0)
摘要:.container{ overflow: hidden;}.con-left{ float: left; width: 200px; background-color: red; background:#d3daf8 ; position: relati... 阅读全文
posted @ 2016-01-20 16:50 Mu薇 阅读(183) 评论(0) 推荐(0)
摘要:if (docName.length > 16) { docName = docName.substring(0, 7) + "…" + docName.substring(docName.length - 7, docName.length);}第二种亲亲老公(づ ̄3 ̄)づ╭❤~的方法:if... 阅读全文
posted @ 2015-10-20 11:13 Mu薇 阅读(284) 评论(0) 推荐(0)
摘要:1、input的占位符placeholder在IE8不兼容,可以使用placeholder.js,给要显示占位符的input添加相对定位:position:relative即可; 2、iframe在IE8下有滚动条,解决办法:加入 frameborder="0"属性即可; 3、IE8下textare 阅读全文
posted @ 2015-08-20 14:23 Mu薇 阅读(173) 评论(0) 推荐(0)
摘要:table{ table-layout:fixed;}td{ white-space:nowrap; overflow:hidden; text-overflow:ellipsis;} 在table和td分别新增这几个样式就可以了,效果如下:本方法用于解决表格单元格内... 阅读全文
posted @ 2015-07-31 14:43 Mu薇 阅读(657) 评论(0) 推荐(0)