摘要: position: absolute;margin: auto;left: 0;top: 0;bottom: 0;right: 0; 首先页首必须设置文档类型: 且在head内添加: 即可! (转自http://www.zhnao.com/post/197.html实在太感谢了,这个问题困... 阅读全文
posted @ 2015-10-21 17:40 Mu薇 阅读(386) 评论(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薇 阅读(276) 评论(0) 推荐(0) 编辑
摘要: //复选框全选全不选//只需要给全选input增加ID=“checkall”就行 $('#checkall').click(function(event) { $(this).closest('tr').siblings('tr').find('input').prop(... 阅读全文
posted @ 2015-10-16 09:13 Mu薇 阅读(164) 评论(0) 推荐(0) 编辑
摘要: 来自于http://www.oschina.net/code/snippet_1780998_36843$(".addFullIn").click( function () { $(".questionName").insertContent("( )"); });//$(".... 阅读全文
posted @ 2015-09-06 17:00 Mu薇 阅读(1934) 评论(0) 推荐(0) 编辑
摘要: $(document).ready(function() { changeAdPosition(); //一上来也调用函数 $(window).scroll(changeAdPosition); ... 阅读全文
posted @ 2015-08-20 14:26 Mu薇 阅读(272) 评论(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薇 阅读(166) 评论(0) 推荐(0) 编辑
摘要: $(document).ready(function () { var radioGroup = $(".radioGroup input"); var types = $(".add-test tr.types"); //全部答... 阅读全文
posted @ 2015-08-13 14:03 Mu薇 阅读(484) 评论(0) 推荐(0) 编辑
摘要: 修改相应宽高和路径@* *@ 阅读全文
posted @ 2015-08-04 14:06 Mu薇 阅读(349) 评论(0) 推荐(0) 编辑
摘要: 卷动值大于300时,小火箭出现;点击小火箭,变色(更换背景图);回到顶部,小火箭变色并消失 阅读全文
posted @ 2015-07-31 14:57 Mu薇 阅读(159) 评论(0) 推荐(0) 编辑
摘要: table{ table-layout:fixed;}td{ white-space:nowrap; overflow:hidden; text-overflow:ellipsis;} 在table和td分别新增这几个样式就可以了,效果如下:本方法用于解决表格单元格内... 阅读全文
posted @ 2015-07-31 14:43 Mu薇 阅读(649) 评论(0) 推荐(0) 编辑