会员
周边
新闻
博问
闪存
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
孙海阔-前端工程师
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
6
下一页
2016年1月4日
ls远程服务目录
摘要: ssh 60.28.201.144 ls -ltr /home/web/即可
阅读全文
posted @ 2016-01-04 11:14 sunhaikuo
阅读(250)
评论(0)
推荐(0)
2016年1月3日
查看Apache信息以用户htdoc位置
摘要: 查看Apache的相关信息:httpd -V再从基本信息中取得DocumentRoot位置less /etc/httpd/httpd.conf中查找DocumentRoot,即有静态文件存放的位置,我的在:/var/www/html中
阅读全文
posted @ 2016-01-03 22:15 sunhaikuo
阅读(436)
评论(0)
推荐(0)
2015年10月27日
java打印堆栈信息
摘要: StackTraceElement[] stackElements = new Throwable().getStackTrace(); if(stackElements != null){ for(int i = 0; i < stackElem...
阅读全文
posted @ 2015-10-27 10:11 sunhaikuo
阅读(1396)
评论(0)
推荐(0)
2015年10月19日
让zepto支持requirejs的方法
摘要: window.Zepto = Zepto'$' in window || (window.$ = Zepto)if ( typeof define === "function" && define.amd ) { define( "zepto", [], function () { return ...
阅读全文
posted @ 2015-10-19 11:55 sunhaikuo
阅读(505)
评论(0)
推荐(0)
2015年9月8日
jQuery判断动画是否执行完成
摘要: JS$(function() { $("#myDiv").bind("click", function() { if ($(this).css("transform") == 'none') { $(this).css("transform", "scale(1.5, 1.5)")...
阅读全文
posted @ 2015-09-08 10:20 sunhaikuo
阅读(2047)
评论(0)
推荐(0)
2015年9月7日
IE6/7下同级只有一个元素浮动,会换行问题
摘要: .myDiv { background-color: red; width: 200px; height: 200px; padding: 10px; } .div1 { background-color: y...
阅读全文
posted @ 2015-09-07 17:24 sunhaikuo
阅读(146)
评论(0)
推荐(0)
2015年9月4日
client的使用
摘要: document.documentElement.clientHeight = 464 // 指窗口的可见高度的大小document.body.clientHeight = 1577 // 指窗口的实际高度,包括滚动条
阅读全文
posted @ 2015-09-04 21:54 sunhaikuo
阅读(404)
评论(0)
推荐(0)
2015年9月2日
js和JQuery中offset等属性对比
摘要: HTML:内容在滚动条下面 会员视频下载CSS:* { margin: 0; padding: 0;}html,body { width: 400px; height: 300px;}#outerDiv { border: 1px solid red; margin-left: 100...
阅读全文
posted @ 2015-09-02 15:50 sunhaikuo
阅读(221)
评论(0)
推荐(0)
2015年8月26日
IE6下float双边距问题
摘要: 当浮动元素的方向和设置margin的方向相同时,就会出现双边距问题,解决方法是:删除浮动,改成display:inline-block_display:inline; _zoom:1;
阅读全文
posted @ 2015-08-26 16:59 sunhaikuo
阅读(224)
评论(0)
推荐(0)
IE6/IE7下只设置margin-left,左右都有边距问题
摘要: CSS代码 div { border: 1px solid red; } .inner { width: 80px; height: 80px; float: left; position: relati...
阅读全文
posted @ 2015-08-26 11:44 sunhaikuo
阅读(425)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
下一页
公告