This file contains 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
/** | |
* Dabblet Demo | |
*/ | |
background: #f06; | |
background: linear-gradient(45deg, #f06, yellow); | |
min-height: 100%; |
This file contains 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>Nine Grid</title> | |
<style> | |
ul { | |
width: 165px; | |
padding: 30px; | |
} |
This file contains 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>前端试题:CSS3 文字放大效果</title> | |
</head> | |
<style> | |
a { | |
display: table-cell; | |
width: 220px; |
This file contains 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>CSS3 Amazing Effects</title> | |
<style> | |
@import url(http://fonts.googleapis.com/css?family=Terminal+Dosis); | |
html { | |
background-color: hsl(0,0%,18%); |
This file contains 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
//JavaScript callee 用法示例 | |
function factorial(num) { | |
if (num <= 1) { | |
return 1; | |
} else { | |
return num * arguments.callee(num - 1); | |
} | |
} | |
This file contains 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> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Magnifier Demo</title> | |
<style type="text/css"> | |
body { | |
margin: 0; | |
padding: 0; | |
} |
This file contains 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
function DateDiff(interval, date1, date2) { | |
var longl = date2.getTime() - date1.getTime(); //相差毫秒 | |
switch (interval.toLowerCase()) { | |
case "y": | |
return parseInt(date2.getFullYear() - date1.getFullYear()); | |
case "m": | |
return parseInt((date2.getFullYear() - date1.getFullYear()) * 12 + (date2.getMonth() - date1.getMonth())); | |
case "d": | |
return parseInt(longl / 1000 / 60 / 60 / 24); | |
case "w": |
This file contains 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
$.extend({ | |
paging : function(options) { | |
var default_configs = { | |
container: null, | |
total_count: 0, | |
page_size: 0, | |
cur_page: 0, | |
list_count: 5, | |
goPage: function(page_num) {} | |
}; |