摘要: ssh 60.28.201.144 ls -ltr /home/web/即可 阅读全文
posted @ 2016-01-04 11:14 sunhaikuo 阅读(224) 评论(0) 推荐(0) 编辑
摘要: 查看Apache的相关信息:httpd -V再从基本信息中取得DocumentRoot位置less /etc/httpd/httpd.conf中查找DocumentRoot,即有静态文件存放的位置,我的在:/var/www/html中 阅读全文
posted @ 2016-01-03 22:15 sunhaikuo 阅读(399) 评论(0) 推荐(0) 编辑
摘要: StackTraceElement[] stackElements = new Throwable().getStackTrace(); if(stackElements != null){ for(int i = 0; i < stackElem... 阅读全文
posted @ 2015-10-27 10:11 sunhaikuo 阅读(1368) 评论(0) 推荐(0) 编辑
摘要: window.Zepto = Zepto'$' in window || (window.$ = Zepto)if ( typeof define === "function" && define.amd ) { define( "zepto", [], function () { return ... 阅读全文
posted @ 2015-10-19 11:55 sunhaikuo 阅读(491) 评论(0) 推荐(0) 编辑
摘要: 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 阅读(2022) 评论(0) 推荐(0) 编辑
摘要: .myDiv { background-color: red; width: 200px; height: 200px; padding: 10px; } .div1 { background-color: y... 阅读全文
posted @ 2015-09-07 17:24 sunhaikuo 阅读(129) 评论(0) 推荐(0) 编辑
摘要: document.documentElement.clientHeight = 464 // 指窗口的可见高度的大小document.body.clientHeight = 1577 // 指窗口的实际高度,包括滚动条 阅读全文
posted @ 2015-09-04 21:54 sunhaikuo 阅读(331) 评论(0) 推荐(0) 编辑
摘要: 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 阅读(199) 评论(0) 推荐(0) 编辑
摘要: 当浮动元素的方向和设置margin的方向相同时,就会出现双边距问题,解决方法是:删除浮动,改成display:inline-block_display:inline; _zoom:1; 阅读全文
posted @ 2015-08-26 16:59 sunhaikuo 阅读(204) 评论(0) 推荐(0) 编辑
摘要: CSS代码 div { border: 1px solid red; } .inner { width: 80px; height: 80px; float: left; position: relati... 阅读全文
posted @ 2015-08-26 11:44 sunhaikuo 阅读(398) 评论(0) 推荐(0) 编辑