以下是 jQuery+CSS3实现3D全屏图片切换动画轮播滚动切换特效代码 的示例演示效果:
部分效果截图:
HTML代码(index.html):
<!DOCTYPE html>
<html lang="en">
<head>
<title>Fullscreen Image 3D Effect with CSS3 and jQuery</title>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="Fullscreen Image 3D Effect with CSS3 and jQuery" />
<meta name="keywords" content="css3, box, 3d, effect, jquery, images, slideshow, slide, fullscreen, transition, transfrom, 3dtransform" />
<meta name="author" content="Codrops" />
<link rel="shortcut icon" href="../favicon.ico">
<link rel="stylesheet" type="text/css" href="css/demo.css" />
<link rel="stylesheet" type="text/css" href="css/style.css" />
<!--<link href='http://fonts.googleapis.com/css?family=Amatic+SC:700' rel='stylesheet' type='text/css' />-->
<noscript>
<style>
.fd-wrapper > img{
display: block;
margin: 0 auto;
}
</style>
</noscript>
<script id="pageTmpl" type="text/x-jquery-tmpl">
<div class="fd-box-wrapper">
<div class="fd-box fd-box-upper">
<div class="fd-front">
<div class="fd-image">
<a href="#" class="fd-option fd-option-fullscreen">Fullscreen</a>
<div class="fd-option fd-loading"></div>
</div>
<!-- any other content after this -->
<div class="header">
<a href="http://tympanus.net/Tutorials/CreativeCSS3AnimationMenus/"><strong>« Previous Demo: </strong>Creative CSS3 Animation Menus</a>
<span class="right">
<a href="http://www.flickr.com/photos/jeeheon/" target="_blank">Images by Jeeheon</a>
<a href="http://tympanus.net/codrops/2011/10/31/fullscreen-image-3d-effect/"><strong>Back to the Codrops Article</strong></a>
</span>
<div class="clr"></div>
</div>
<h1>Fullscreen Image 3D Effect with CSS3 and jQuery</h1>
<p id="fd-message" class="fd-message" style="display:none;">Note: Try opening this page with Chrome or Safari to see the 3D effect!</p>
</div>
<div class="fd-back"></div>
<div class="fd-right"></div>
<div class="fd-left"></div>
<div class="fd-top"></div>
<div class="fd-bottom">
<a href="#" class="fd-option fd-option-zoomout">Zoom out</a>
</div>
</div>
</div>
<div class="fd-box-wrapper">
<div class="fd-box fd-box-lower">
<div class="fd-front">
<div class="fd-image">
<h2 class="fd-title"></h2>
</div>
<!-- dot navigation -->
<ul class="fd-nav">
<li><a href="#"><span>Image 1</span></a></li>
<li><a href="#"><span>Image 2</span></a></li>
<li><a href="#"><span>Image 3</span></a></li>
</ul>
<!-- any other content after this -->
</div>
<div class="fd-back"></div>
<div class="fd-right"></div>
<div class="fd-left"></div>
<div class="fd-top"></div>
<div class="fd-bottom"></div>
</div>
</div>
</script>
<script type="text/javascript" src="js/modernizr.custom.40443.js"></script>
</head>
<body>
<div class="container">
<div id="fd-wrapper" class="fd-wrapper">
<img src="images/medium/1.jpg" data-bgimg="images/large/1.jpg" alt="image01" title="Love Will Tear Us Apart" />
<img src="images/medium/2.jpg" data-bgimg="images/large/2.jpg" alt="image02" title="Just Can't Get Enough" />
<img src="images/medium/3.jpg" data-bgimg="images/large/3.jpg" alt="image03" title="In a Manner of Speaking" />
</div>
</div>
<script type="text/javascript" src="js/jquery-1.7.2.min.js"></script>
<script type="text/javascript" src="js/jquery.tmpl.min.js"></script>
<script type="text/javascript" src="js/jquery.slideshow.min.js"></script>
<script type="text/javascript">
$(function() {
$('#fd-wrapper').slideshow({
width : 600,
height : 396,
onLoad : function() {
if( !Modernizr.csstransforms3d )
$('#fd-message').show();
}
});
});
</script>
</body>
</html>
JS代码(jquery.tmpl.min.js):
(function(a){
var r=a.fn.domManip,d="_tmplitem",q=/^[^<]*(<[\w\W]+>)[^>]*$|\{
\{
\! /,b={
}
,f={
}
,e,p={
key:0,data:{
}
}
,h=0,c=0,l=[];
function g(e,d,g,i){
var c={
data:i||(d?d.data:{
}
),_wrap:d?d._wrap:null,tmpl:null,parent:d||null,nodes:[],calls:u,nest:w,wrap:x,html:v,update:t}
;
e&&a.extend(c,e,{
nodes:[],parent:d}
);
if(g){
c.tmpl=g;
c._ctnt=c._ctnt||c.tmpl(a,c);
c.key=++h;
(l.length?f:b)[h]=c}
return c}
a.each({
appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"}
,function(f,d){
a.fn[f]=function(n){
var g=[],i=a(n),k,h,m,l,j=this.length===1&&this[0].parentNode;
e=b||{
}
;
if(j&&j.nodeType===11&&j.childNodes.length===1&&i.length===1){
i[d](this[0]);
g=this}
else{
for(h=0,m=i.length;
h<m;
h++){
c=h;
k=(h>0?this.clone(true):this).get();
a.fn[d].apply(a(i[h]),k);
g=g.concat(k)}
c=0;
g=this.pushStack(g,f,i.selector)}
l=e;
e=null;
a.tmpl.complete(l);
return g}
}
);
a.fn.extend({
tmpl:function(d,c,b){
return a.tmpl(this[0],d,c,b)}
,tmplItem:function(){
return a.tmplItem(this[0])}
,template:function(b){
return a.template(b,this[0])}
,domManip:function(d,l,j){
if(d[0]&&d[0].nodeType){
var f=a.makeArray(arguments),g=d.length,i=0,h;
while(i<g&&!(h=a.data(d[i++],"tmplItem")));
if(g>1)f[0]=[a.makeArray(d)];
if(h&&c)f[2]=function(b){
a.tmpl.afterManip(this,b,j)}
;
r.apply(this,f)}
else r.apply(this,arguments);
c=0;
!e&&a.tmpl.complete(b);
return this}
}
);
a.extend({
tmpl:function(d,h,e,c){
var j,k=!c;
if(k){
c=p;
d=a.template[d]||a.template(null,d);
f={
}
}
else if(!d){
d=c.tmpl;
b[c.key]=c;
c.nodes=[];
c.wrapped&&n(c,c.wrapped);
return a(i(c,null,c.tmpl(a,c)))}
if(!d)return[];
if(typeof h==="function")h=h.call(c||{
}
);
e&&e.wrapped&&n(e,e.wrapped);
j=a.isArray(h)?a.map(h,function(a){
return a?g(e,c,d,a):null}
):[g(e,c,d,h)];
return k?a(i(c,null,j)):j}
,tmplItem:function(b){
var c;
if(b instanceof a)b=b[0];
while(b&&b.nodeType===1&&!(c=a.data(b,"tmplItem"))&&(b=b.parentNode));
return c||p}
,template:function(c,b){
if(b){
if(typeof b==="string")b=o(b);
else if(b instanceof a)b=b[0]||{
}
;
if(b.nodeType)b=a.data(b,"tmpl")||a.data(b,"tmpl",o(b.innerHTML));
return typeof c==="string"?(a.template[c]=b):b}
return c?typeof c!=="string"?a.template(null,c):a.template[c]||a.template(null,q.test(c)?c:a(c)):null}
,encode:function(a){
return(""+a).split("<").join("<
").split(">").join(">
").split('"').join(""
").split("'").join("'
")}
}
);
a.extend(a.tmpl,{
tag:{
tmpl:{
_default:{
$2:"null"}
,open:"if($notnull_1){
_=_.concat($item.nest($1,$2));
}
"}
,wrap:{
_default:{
$2:"null"}
,open:"$item.calls(_,$1,$2);
_=[];
",close:"call=$item.calls();
_=call._.concat($item.wrap(call,_));
"}
,each:{
_default:{
$2:"$index,$value"}
,open:"if($notnull_1){
$.each($1a,function($2){
with(this){
",close:"}
}
);
}
"}
,"if":{
open:"if(($notnull_1) && $1a){
",close:"}
"}
,"else":{
_default:{
$1:"true"}
,open:"}
else if(($notnull_1) && $1a){
"}
,html:{
open:"if($notnull_1){
_.push($1a);
}
"}
,"=":{
_default:{
$1:"$data"}
,open:"if($notnull_1){
_.push($.encode($1a));
}
"}
,"!":{
open:""}
}
,complete:function(){
b={
}
}
,afterManip:function(f,b,d){
var e=b.nodeType===11?a.makeArray(b.childNodes):b.nodeType===1?[b]:[];
d.call(f,b);
m(e);
c++}
}
);
function i(e,g,f){
var b,c=f?a.map(f,function(a){
return typeof a==="string"?e.key?a.replace(/(<\w+)(?=[\s>])(?![^>]*_tmplitem)([^>]*)/g,"$1 "+d+'="'+e.key+'" $2'):a:i(a,e,a._ctnt)}
):e;
if(g)return c;
c=c.join("");
c.replace(/^\s*([^<\s][^<]*)?(<[\w\W]+>)([^>]*[^>\s])?\s*$/,function(f,c,e,d){
b=a(e).get();
m(b);
if(c)b=j(c).concat(b);
if(d)b=b.concat(j(d))}
);
return b?b:j(c)}
function j(c){
var b=document.createElement("div");
b.innerHTML=c;
return a.makeArray(b.childNodes)}
function o(b){
return new Function("jQuery","$item","var $=jQuery,call,_=[],$data=$item.data;
with($data){
_.push('"+a.trim(b).replace(/([\\'])/g,"\\$1").replace(/[\r\t\n]/g," ").replace(/\$\{
([^\}
]*)\}
/g,"{
{
= $1}
}
").replace(/\{
\{
(\/?)(\w+|.)(?:\(((?:[^\}
]|\}
(?!\}
))*?)?\))?(?:\s+(.*?)?)?(\(((?:[^\}
]|\}
(?!\}
))*?)\))?\s*\}
\}
/g,function(m,l,j,d,b,c,e){
var i=a.tmpl.tag[j],h,f,g;
if(!i)throw"Template command not found:"+j;
h=i._default||[];
if(c&&!/\w$/.test(b)){
b+=c;
c=""}
if(b){
b=k(b);
e=e?","+k(e)+")":c?")":"";
f=c?b.indexOf(".")>-1?b+c:"("+b+").call($item"+e:b;
g=c?f:"(typeof("+b+")==='function'?("+b+").call($item):("+b+"))"}
else g=f=h.$1||"null";
d=k(d);
return"');
"+i[l?"close":"open"].split("$notnull_1").join(b?"typeof("+b+")!=='undefined' && ("+b+")!=null":"true").split("$1a").join(g).split("$1").join(f).split("$2").join(d?d.replace(/\s*([^\(]+)\s*(\((.*?)\))?/g,function(d,c,b,a){
a=a?","+a+")":b?")":"";
return a?"("+c+").call($item"+a:d}
):h.$2||"")+"_.push('"}
)+"');
}
return _;
")}
function n(c,b){
c._wrap=i(c,true,a.isArray(b)?b:[q.test(b)?b:a(b).html()]).join("")}
function k(a){
return a?a.replace(/\\'/g,"'").replace(/\\\\/g,"\\"):null}
function s(b){
var a=document.createElement("div");
a.appendChild(b.cloneNode(true));
return a.innerHTML}
function m(o){
var n="_"+c,k,j,l={
}
,e,p,i;
for(e=0,p=o.length;
e<p;
e++){
if((k=o[e]).nodeType!==1)continue;
j=k.getElementsByTagName("*");
for(i=j.length-1;
i>=0;
i--)m(j[i]);
m(k)}
function m(j){
var p,i=j,k,e,m;
if(m=j.getAttribute(d)){
while(i.parentNode&&(i=i.parentNode).nodeType===1&&!(p=i.getAttribute(d)));
if(p!==m){
i=i.parentNode?i.nodeType===11?0:i.getAttribute(d)||0:0;
if(!(e=b[m])){
e=f[m];
e=g(e,b[i]||f[i],null,true);
e.key=++h;
b[h]=e}
c&&o(m)}
j.removeAttribute(d)}
else if(c&&(e=a.data(j,"tmplItem"))){
o(e.key);
b[e.key]=e;
i=a.data(j.parentNode,"tmplItem");
i=i?i.key:0}
if(e){
k=e;
while(k&&k.key!=i){
k.nodes.push(j);
k=k.parent}
delete e._ctnt;
delete e._wrap;
a.data(j,"tmplItem",e)}
function o(a){
a=a+n;
e=l[a]=l[a]||g(e,b[e.parent.key+n]||e.parent,null,true)}
}
}
function u(a,d,c,b){
if(!a)return l.pop();
l.push({
_:a,tmpl:d,item:this,data:c,options:b}
)}
function w(d,c,b){
return a.tmpl(a.template(d),c,b,this)}
function x(b,d){
var c=b.options||{
}
;
c.wrapped=d;
return a.tmpl(a.template(b.tmpl),b.data,c,b.item)}
function v(d,c){
var b=this._wrap;
return a.map(a(a.isArray(b)?b.join(""):b).filter(d||"*"),function(a){
return c?a.innerText||a.textContent:a.outerHTML||s(a)}
)}
function t(){
var b=this.nodes;
a.tmpl(null,null,null,this).insertBefore(b[0]);
a(b).remove()}
}
)(jQuery)
JS代码(modernizr.custom.40443.js):
/* Modernizr 2.0.6 (Custom Build) | MIT & BSD * Build:http://www.modernizr.com/download/#-backgroundsize-csstransforms3d-iepp-cssclasses-teststyles-testprop-testallprops-prefixes-domprefixes-load */
;
window.Modernizr=function(a,b,c){
function C(a,b){
var c=a.charAt(0).toUpperCase()+a.substr(1),d=(a+" "+o.join(c+" ")+c).split(" ");
return B(d,b)}
function B(a,b){
for(var d in a)if(k[a[d]]!==c)return b=="pfx"?a[d]:!0;
return!1}
function A(a,b){
return!!~(""+a).indexOf(b)}
function z(a,b){
return typeof a===b}
function y(a,b){
return x(n.join(a+";
")+(b||""))}
function x(a){
k.cssText=a}
var d="2.0.6",e={
}
,f=!0,g=b.documentElement,h=b.head||b.getElementsByTagName("head")[0],i="modernizr",j=b.createElement(i),k=j.style,l,m=Object.prototype.toString,n=" -webkit- -moz- -o- -ms- -khtml- ".split(" "),o="Webkit Moz O ms Khtml".split(" "),p={
}
,q={
}
,r={
}
,s=[],t=function(a,c,d,e){
var f,h,j,k=b.createElement("div");
if(parseInt(d,10))while(d--)j=b.createElement("div"),j.id=e?e[d]:i+(d+1),k.appendChild(j);
f=["­
","<style>",a,"</style>"].join(""),k.id=i,k.innerHTML+=f,g.appendChild(k),h=c(k,a),k.parentNode.removeChild(k);
return!!h}
,u,v={
}
.hasOwnProperty,w;
!z(v,c)&&!z(v.call,c)?w=function(a,b){
return v.call(a,b)}
:w=function(a,b){
return b in a&&z(a.constructor.prototype[b],c)}
;
var D=function(a,c){
var d=a.join(""),f=c.length;
t(d,function(a,c){
var d=b.styleSheets[b.styleSheets.length-1],g=d.cssRules&&d.cssRules[0]?d.cssRules[0].cssText:d.cssText||"",h=a.childNodes,i={
}
;
while(f--)i[h[f].id]=h[f];
e.csstransforms3d=i.csstransforms3d.offsetLeft===9}
,f,c)}
([,["@media (",n.join("transform-3d),("),i,")","{
#csstransforms3d{
left:9px;
position:absolute}
}
"].join("")],[,"csstransforms3d"]);
p.backgroundsize=function(){
return C("backgroundSize")}
,p.csstransforms3d=function(){
var a=!!B(["perspectiveProperty","WebkitPerspective","MozPerspective","OPerspective","msPerspective"]);
a&&"webkitPerspective"in g.style&&(a=e.csstransforms3d);
return a}
;
for(var E in p)w(p,E)&&(u=E.toLowerCase(),e[u]=p[E](),s.push((e[u]?"":"no-")+u));
x(""),j=l=null,a.attachEvent&&function(){
var a=b.createElement("div");
a.innerHTML="<elem></elem>";
return a.childNodes.length!==1}
()&&function(a,b){
function s(a){
var b=-1;
while(++b<g)a.createElement(f[b])}
a.iepp=a.iepp||{
}
;
var d=a.iepp,e=d.html5elements||"abbr|article|aside|audio|canvas|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",f=e.split("|"),g=f.length,h=new RegExp("(^|\\s)("+e+")","gi"),i=new RegExp("<(/*)("+e+")","gi"),j=/^\s*[\{
\}
]\s*$/,k=new RegExp("(^|[^\\n]*?\\s)("+e+")([^\\n]*)({
[\\n\\w\\W]*?}
)","gi"),l=b.createDocumentFragment(),m=b.documentElement,n=m.firstChild,o=b.createElement("body"),p=b.createElement("style"),q=/print|all/,r;
d.getCSS=function(a,b){
if(a+""===c)return"";
var e=-1,f=a.length,g,h=[];
while(++e<f){
g=a[e];
if(g.disabled)continue;
b=g.media||b,q.test(b)&&h.push(d.getCSS(g.imports,b),g.cssText),b="all"}
return h.join("")}
,d.parseCSS=function(a){
var b=[],c;
while((c=k.exec(a))!=null)b.push(((j.exec(c[1])?"\n":c[1])+c[2]+c[3]).replace(h,"$1.iepp_$2")+c[4]);
return b.join("\n")}
,d.writeHTML=function(){
var a=-1;
r=r||b.body;
while(++a<g){
var c=b.getElementsByTagName(f[a]),d=c.length,e=-1;
while(++e<d)c[e].className.indexOf("iepp_")<0&&(c[e].className+=" iepp_"+f[a])}
l.appendChild(r),m.appendChild(o),o.className=r.className,o.id=r.id,o.innerHTML=r.innerHTML.replace(i,"<$1font")}
,d._beforePrint=function(){
p.styleSheet.cssText=d.parseCSS(d.getCSS(b.styleSheets,"all")),d.writeHTML()}
,d.restoreHTML=function(){
o.innerHTML="",m.removeChild(o),m.appendChild(r)}
,d._afterPrint=function(){
d.restoreHTML(),p.styleSheet.cssText=""}
,s(b),s(l);
d.disablePP||(n.insertBefore(p,n.firstChild),p.media="print",p.className="iepp-printshim",a.attachEvent("onbeforeprint",d._beforePrint),a.attachEvent("onafterprint",d._afterPrint))}
(a,b),e._version=d,e._prefixes=n,e._domPrefixes=o,e.testProp=function(a){
return B([a])}
,e.testAllProps=C,e.testStyles=t,g.className=g.className.replace(/\bno-js\b/,"")+(f?" js "+s.join(" "):"");
return e}
(this,this.document),function(a,b,c){
function k(a){
return!a||a=="loaded"||a=="complete"}
function j(){
var a=1,b=-1;
while(p.length- ++b)if(p[b].s&&!(a=p[b].r))break;
a&&g()}
function i(a){
var c=b.createElement("script"),d;
c.src=a.s,c.onreadystatechange=c.onload=function(){
!d&&k(c.readyState)&&(d=1,j(),c.onload=c.onreadystatechange=null)}
,m(function(){
d||(d=1,j())}
,H.errorTimeout),a.e?c.onload():n.parentNode.insertBefore(c,n)}
function h(a){
var c=b.createElement("link"),d;
c.href=a.s,c.rel="stylesheet",c.type="text/css";
if(!a.e&&(w||r)){
var e=function(a){
m(function(){
if(!d)try{
a.sheet.cssRules.length?(d=1,j()):e(a)}
catch(b){
b.code==1e3||b.message=="security"||b.message=="denied"?(d=1,m(function(){
j()}
,0)):e(a)}
}
,0)}
;
e(c)}
else c.onload=function(){
d||(d=1,m(function(){
j()}
,0))}
,a.e&&c.onload();
m(function(){
d||(d=1,j())}
,H.errorTimeout),!a.e&&n.parentNode.insertBefore(c,n)}
function g(){
var a=p.shift();
q=1,a?a.t?m(function(){
a.t=="c"?h(a):i(a)}
,0):(a(),j()):q=0}
function f(a,c,d,e,f,h){
function i(){
!o&&k(l.readyState)&&(r.r=o=1,!q&&j(),l.onload=l.onreadystatechange=null,m(function(){
u.removeChild(l)}
,0))}
var l=b.createElement(a),o=0,r={
t:d,s:c,e:h}
;
l.src=l.data=c,!s&&(l.style.display="none"),l.width=l.height="0",a!="object"&&(l.type=d),l.onload=l.onreadystatechange=i,a=="img"?l.onerror=i:a=="script"&&(l.onerror=function(){
r.e=r.r=1,g()}
),p.splice(e,0,r),u.insertBefore(l,s?null:n),m(function(){
o||(u.removeChild(l),r.r=r.e=o=1,j())}
,H.errorTimeout)}
function e(a,b,c){
var d=b=="c"?z:y;
q=0,b=b||"j",C(a)?f(d,a,b,this.i++,l,c):(p.splice(this.i++,0,a),p.length==1&&g());
return this}
function d(){
var a=H;
a.loader={
load:e,i:0}
;
return a}
var l=b.documentElement,m=a.setTimeout,n=b.getElementsByTagName("script")[0],o={
}
.toString,p=[],q=0,r="MozAppearance"in l.style,s=r&&!!b.createRange().compareNode,t=r&&!s,u=s?l:n.parentNode,v=a.opera&&o.call(a.opera)=="[object Opera]",w="webkitAppearance"in l.style,x=w&&"async"in b.createElement("script"),y=r?"object":v||x?"img":"script",z=w?"img":y,A=Array.isArray||function(a){
return o.call(a)=="[object Array]"}
,B=function(a){
return Object(a)===a}
,C=function(a){
return typeof a=="string"}
,D=function(a){
return o.call(a)=="[object Function]"}
,E=[],F={
}
,G,H;
H=function(a){
function f(a){
var b=a.split("!"),c=E.length,d=b.pop(),e=b.length,f={
url:d,origUrl:d,prefixes:b}
,g,h;
for(h=0;
h<e;
h++)g=F[b[h]],g&&(f=g(f));
for(h=0;
h<c;
h++)f=E[h](f);
return f}
function e(a,b,e,g,h){
var i=f(a),j=i.autoCallback;
if(!i.bypass){
b&&(b=D(b)?b:b[a]||b[g]||b[a.split("/").pop().split("?")[0]]);
if(i.instead)return i.instead(a,b,e,g,h);
e.load(i.url,i.forceCSS||!i.forceJS&&/css$/.test(i.url)?"c":c,i.noexec),(D(b)||D(j))&&e.load(function(){
d(),b&&b(i.origUrl,h,g),j&&j(i.origUrl,h,g)}
)}
}
function b(a,b){
function c(a){
if(C(a))e(a,h,b,0,d);
else if(B(a))for(i in a)a.hasOwnProperty(i)&&e(a[i],h,b,i,d)}
var d=!!a.test,f=d?a.yep:a.nope,g=a.load||a.both,h=a.callback,i;
c(f),c(g),a.complete&&b.load(a.complete)}
var g,h,i=this.yepnope.loader;
if(C(a))e(a,0,i,0);
else if(A(a))for(g=0;
g<a.length;
g++)h=a[g],C(h)?e(h,0,i,0):A(h)?H(h):B(h)&&b(h,i);
else B(a)&&b(a,i)}
,H.addPrefix=function(a,b){
F[a]=b}
,H.addFilter=function(a){
E.push(a)}
,H.errorTimeout=1e4,b.readyState==null&&b.addEventListener&&(b.readyState="loading",b.addEventListener("DOMContentLoaded",G=function(){
b.removeEventListener("DOMContentLoaded",G,0),b.readyState="complete"}
,0)),a.yepnope=d()}
(this,this.document),Modernizr.load=function(){
yepnope.apply(window,[].slice.call(arguments,0))}
;
CSS代码(demo.css):
@import url('reset.css');/* General Demo Style */
body{background:#d8cebb url(../images/pinstripe_dark.png) repeat top left;color:#333;font-family:'Amatic SC',Arial,sans-serif;font-size:13px;}
.container{position:relative;}
a{color:#fff;text-decoration:none;}
.clr{clear:both;}
.content{position:relative;}
h1{text-align:center;padding:20px 0px 5px 0px;font-size:30px;color:#000;text-shadow:1px 1px 1px rgba(255,255,255,0.9);font-weight:700;}
/* Header Style */
.header{font-family:'Arial Narrow',Arial,sans-serif;line-height:24px;font-size:11px;background:#000;opacity:0.9;text-transform:uppercase;z-index:9999;position:relative;-moz-box-shadow:1px 0px 2px #000;-webkit-box-shadow:1px 0px 2px #000;box-shadow:1px 0px 2px #000;}
.header a{padding:0px 10px;letter-spacing:1px;color:#ddd;display:block;float:left;}
.header a:hover{color:#fff;}
.header span.right{float:right;}
.header span.right a{float:none;display:inline;}
h1 a{text-shadow:none;color:#555;background:#fff;font-size:20px;padding:2px 5px;-moz-box-shadow:1px 1px 2px #ddd;-webkit-box-shadow:1px 1px 2px #ddd;box-shadow:1px 1px 2px #ddd;}
h1 a.selected,h1 a.selected:hover{background:#d8cebb;color:#fff;text-shadow:none;font-weight:bold;outline:none;}
h1 a:hover{background:#d8cebb;}
CSS代码(reset.css):
/* CSS reset */
body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,form,fieldset,input,textarea,p,blockquote,th,td{margin:0;padding:0;}
html,body{margin:0;padding:0;}
table{border-collapse:collapse;border-spacing:0;}
fieldset,img{border:0;}
input{border:1px solid #b0b0b0;padding:3px 5px 4px;color:#979797;width:190px;}
address,caption,cite,code,dfn,th,var{font-style:normal;font-weight:normal;}
ol,ul{list-style:none;}
caption,th{text-align:left;}
h1,h2,h3,h4,h5,h6{font-size:100%;font-weight:normal;}
q:before,q:after{content:'';}
abbr,acronym{border:0;}
CSS代码(style.css):
.fd-wrapper{position:relative;}
.fd-wrapper > img{display:none;}
.fd-box-wrapper{width:100%;height:50%;position:absolute;}
.fd-box{width:100%;height:100%;position:absolute;-webkit-transform-style:preserve-3d;left:0px;top:0px;-webkit-backface-visibility:hidden;}
.fd-box-upper{-webkit-transform-origin:center bottom;}
.fd-box-lower{-webkit-transform-origin:center top;}
.fd-front{background:#fafaf8 url(../images/pinstripe.png) repeat fixed top left;}
.fd-box > div{margin:0;display:block;position:absolute;-webkit-transform-style:preserve-3d;}
.fd-image{position:absolute;left:50%;background-color:#000;background-repeat:no-repeat;z-index:10;}
.fd-box-upper .fd-image{bottom:0px;background-position:top center;}
.fd-box-lower .fd-image{background-position:bottom center;top:0px;-webkit-box-shadow:0px 15px 10px -10px black;-moz-box-shadow:0px 15px 10px -10px black;box-shadow:0px 15px 10px -10px black;}
.fd-nav{margin:0;padding:0;position:absolute;top:220px;left:50%;}
.fd-nav li{float:left;}
.fd-nav li a{background:#f7f5f1;width:18px;height:18px;float:left;margin:0px 4px;-webkit-border-radius:9px;-moz-border-radius:9px;border-radius:9px;outline:none;-moz-box-shadow:2px 2px 4px rgba(0,0,0,0.1) inset,1px 1px 1px #fff;-webkit-box-shadow:2px 2px 4px rgba(0,0,0,0.1) inset,1px 1px 1px #fff;box-shadow:2px 2px 4px rgba(0,0,0,0.1) inset,1px 1px 1px #fff;}
.fd-nav li a span{text-indent:-9000px;width:10px;margin:4px;height:10px;-webkit-border-radius:5px;-moz-border-radius:5px;border-radius:5px;display:none;}
.fd-nav li a:hover,.fd-nav li.fd-nav-current a{background-color:#fff;}
.fd-nav li.fd-nav-current a span,.fd-nav li.fd-nav-current a:hover span{display:block;background:#7d7e7d;/* Old browsers */
background:-moz-linear-gradient(top,#7d7e7d 0%,#0e0e0e 100%);/* FF3.6+ */
background:-webkit-gradient(linear,left top,left bottom,color-stop(0%,#7d7e7d),color-stop(100%,#0e0e0e));/* Chrome,Safari4+ */
background:-webkit-linear-gradient(top,#7d7e7d 0%,#0e0e0e 100%);/* Chrome10+,Safari5.1+ */
background:-o-linear-gradient(top,#7d7e7d 0%,#0e0e0e 100%);/* Opera 11.10+ */
background:-ms-linear-gradient(top,#7d7e7d 0%,#0e0e0e 100%);/* IE10+ */
background:linear-gradient(top,#7d7e7d 0%,#0e0e0e 100%);/* W3C */
-moz-box-shadow:1px 0px 2px #ddd,0px 1px 2px #e2f1bc inset;-webkit-box-shadow:1px 0px 2px #ddd,0px 1px 2px #e2f1bc inset;box-shadow:1px 0px 2px #ddd,0px 1px 2px #e2f1bc inset;}
.fd-option,.fd-loading{width:44px;height:44px;position:absolute;top:5px;right:5px;opacity:0.5;outline:none;text-indent:-9000px;-webkit-border-radius:5px;-moz-border-radius:5px;border-radius:5px;}
.fd-option-fullscreen{background:#000 url(../images/fullscreen.png) no-repeat center center;}
.fd-option-zoomout{background:#000 url(../images/zoom_out.png) no-repeat center center;}
.fd-option:hover{opacity:0.9;}
/* Fallback Style */
.fd-full-image{width:100%;height:100%;position:absolute;left:0px;}
.fd-box-upper .fd-full-image{top:-100%;}
.fd-box-lower .fd-full-image{bottom:-100%;}
h2.fd-title{position:absolute;bottom:0px;left:0px;line-height:66px;text-indent:20px;width:100%;background:#000;color:#fff;font-size:30px;opacity:0.7;}
.fd-loading{right:auto;left:5px;background:#000 url(../images/loader.gif) no-repeat center center;opacity:0.9;display:none;}
.fd-message{text-align:center;font-size:10px;color:#be7e00;text-shadow:1px 1px 1px #fff;position:relative;font-family:Arial,sans-serif;z-index:0;}