This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="box"> | |
<img class="image" src="http://ww1.sinaimg.cn/large/620eff41gw1e62qpb18kyj20sg0sgadc.jpg" alt=""> | |
<div class="text"> | |
<h2>title</h2> | |
<p>This's Photo.</p> | |
</div> | |
</div> | |
<style type="text/css"> | |
.box { | |
width: 100px; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="BoxOne"> | |
<div class="BoxTwo"> | |
X | |
</div> | |
</div> | |
<style type="text/css"> | |
.BoxOne { | |
position: relative; | |
width: 100%; | |
height: 100%; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Document</title> | |
<style> | |
.center { | |
text-align: center; | |
} | |
.centerbox { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
if ($_GET["uk"]) { | |
$bUrl = $_GET["url"]."&uk=".$_GET["uk"]; | |
} else { | |
$bUrl = $_GET["url"]; | |
} | |
@$bPage = file_get_contents($bUrl); | |
// fclose($bUrl); | |
preg_match_all('%\\\"dlink\\\"(.*?)&sh=1%si', $bPage, $dLink); | |
$dLink = substr(str_replace("\\\\/","/",$dLink[0][0]),12); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Top {background: #333;} | |
#Top, .item, .item_node, #Search div, .dock_area, .topic_buttons, .super.button, .topic_buttons:hover, .super.button:hover, #Wrapper {background-image: none !important;} | |
#Search div {background-color: #fff !important;border-radius: 19px;} | |
.topic_buttons {background-color: #eee;} | |
.normal.button,.normal.buttonhover {text-shadow: 0 0 0 #fff;} | |
.box, .normal.button, .normal.button:hover, textarea,input.sl {text-shadow: 0 0 0 #fff;box-shadow: 0 0 0 #fff !important;} | |
.box {border-width: 0;} | |
img[alt="V2EX"] {-webkit-filter: invert(100%);} | |
a, input {transition: all .3s;} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$name = $_GET['n']; //获取文件名 | |
$Extension = substr(strrchr($name, "."), 1); //获取格式名 | |
$Pictures = array("png","jpg","jpeg","gif","svg"); | |
$Audios = array("mp3","m4v","m4a","wav","mpa"); | |
$Videos = array("mp4","mov","ogv","ogg","webm"); | |
if (in_array($Extension,$Videos)) { //判断格式设置对应文件夹 | |
$Folder = "videos/"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<html lang="zh"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Easy Retina Picture</title> | |
<script src="http://ajax.googleapis.com/ajax/libs/jquery/2.0.0/jquery.min.js"></script> | |
<script> | |
jQuery(document).ready(function($) { | |
function retinaImg (ajaxBox) { | |
if (ajaxBox) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jQuery(document).ready(function($) { | |
$(document).on('mouseenter','.sup', | |
function () { | |
var suptext = $(this).data("text"); | |
var supimg = $(this).data("img"); | |
var surtext = $(this).data("sur"); | |
var subtext = $(this).data("sub"); | |
var sultext = $(this).data("sul"); | |
var sTop = $(window).scrollTop() | |
var wHeight = $(window).height(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function format_url($url,$slash) | |
{ | |
/* | |
* 规范化 URL | |
* 判断是否使用 HTTPS 链接,当是 HTTPS 访问时候自动添加 | |
* 自动添加链接前面的 http:// | |
* $slash 是判断是否要后面添加斜杠 | |
*/ | |
if (substr($url,0,4)!='http') { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="post"> | |
<a href="http://www.flickr.com/photos/poagao/4127369934/in/faves-sealour/"> | |
<img class="RDW" width="1024" height="683" src="http://farm3.staticflickr.com/2784/4127369934_cd5c6a6f68_b.jpg" alt=""> | |
</a> | |
</div> |
OlderNewer