会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
Mu薇
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
下一页
2015年10月21日
IE8下绝对居中的margin:auto兼容问题解决办法
摘要: 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薇
阅读(389)
评论(0)
推荐(0)
2015年10月20日
上传文件过长中间显示省略号
摘要: 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薇
阅读(282)
评论(0)
推荐(0)
2015年10月16日
全选
摘要: //复选框全选全不选//只需要给全选input增加ID=“checkall”就行 $('#checkall').click(function(event) { $(this).closest('tr').siblings('tr').find('input').prop(...
阅读全文
posted @ 2015-10-16 09:13 Mu薇
阅读(167)
评论(0)
推荐(0)
2015年9月6日
往textarea中光标所在位置插入文本
摘要: 来自于http://www.oschina.net/code/snippet_1780998_36843$(".addFullIn").click( function () { $(".questionName").insertContent("( )"); });//$("....
阅读全文
posted @ 2015-09-06 17:00 Mu薇
阅读(1947)
评论(0)
推荐(0)
2015年8月20日
侧栏悬浮窗
摘要: $(document).ready(function() { changeAdPosition(); //一上来也调用函数 $(window).scroll(changeAdPosition); ...
阅读全文
posted @ 2015-08-20 14:26 Mu薇
阅读(289)
评论(0)
推荐(0)
IE火狐兼容小知识点(即时更新)
摘要: 1、input的占位符placeholder在IE8不兼容,可以使用placeholder.js,给要显示占位符的input添加相对定位:position:relative即可; 2、iframe在IE8下有滚动条,解决办法:加入 frameborder="0"属性即可; 3、IE8下textare
阅读全文
posted @ 2015-08-20 14:23 Mu薇
阅读(169)
评论(0)
推荐(0)
2015年8月13日
排序、添加、删除、上移、下移功能
摘要: $(document).ready(function () { var radioGroup = $(".radioGroup input"); var types = $(".add-test tr.types"); //全部答...
阅读全文
posted @ 2015-08-13 14:03 Mu薇
阅读(540)
评论(0)
推荐(0)
2015年8月4日
flash插入的方式(IE8以上兼容)
摘要: 修改相应宽高和路径@* *@
阅读全文
posted @ 2015-08-04 14:06 Mu薇
阅读(358)
评论(0)
推荐(0)
2015年7月31日
回到顶部功能
摘要: 卷动值大于300时,小火箭出现;点击小火箭,变色(更换背景图);回到顶部,小火箭变色并消失
阅读全文
posted @ 2015-07-31 14:57 Mu薇
阅读(161)
评论(0)
推荐(0)
文本超过长度后隐藏,显示省略号
摘要: table{ table-layout:fixed;}td{ white-space:nowrap; overflow:hidden; text-overflow:ellipsis;} 在table和td分别新增这几个样式就可以了,效果如下:本方法用于解决表格单元格内...
阅读全文
posted @ 2015-07-31 14:43 Mu薇
阅读(655)
评论(0)
推荐(0)
上一页
1
2
3
下一页
公告