CSS液晶 <br />body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,code,form,fieldset,legend,input,button,textarea,p,blockquote,th,td{margin:0;padding:0;}<br />#mydemo{margin:100px auto;width:600px;}<br />.clock{font-size:18px;width:9em;height:14em;border:1px solid #ddd;position:relative;}<br />.clock div{position: absolute;border-style:solid;}<br />.clock .l,.clock .r,.clock .u,.clock .d{width:0;height:0;overflow:hidden;}<br />.clock .v{width:0;height:5em;border-width:0 0.5em;border-color:#565656;}<br />.clock .v .u{border-style:dotted dotted solid dotted;border-width:0 0.5em 0.5em;border-color:transparent transparent #565656 transparent;top:-0.5em;left:-0.5em;}<br />.clock .v .d{border-style:solid dotted dotted dotted;border-width:0.5em 0.5em 0 0.5em;border-color:#565656 transparent transparent transparent;left:-0.5em;bottom:-0.5em}<br />.clock .h{width:5.5em;height:0;border-width:0.5em 0;border-color:#565656;}<br />.clock .h .l{border-style:dotted solid dotted dotted;border-width:0.5em 0.5em 0.5em 0;border-color:transparent #565656 transparent transparent;top:-0.5em;left:-0.5em;}<br />.clock .h .r{border-style:dotted dotted dotted solid;border-width:0.5em 0 0.5em 0.5em;border-color:transparent transparent transparent #565656;top:-0.5em;right:-0.5em;}<br />.clock .n1{left:0.5em;top:1.5em;}<br />.clock .n2{left:0.5em;top:7.5em;}<br />.clock .n4{left:7.5em;top:7.5em;}<br />.clock .n5{left:7.5em;top:1.5em;}<br />.clock .n6{top:0.4em;left:1.8em;}<br />.clock .n3{top:12.5em;left:1.8em;}<br />.clock .n7{top:6.5em;left:1.8em;}<br />.c1 .n1,.c1 .n2,.c1 .n3,.c1 .n6,.c1 .n7{display:none}<br />.c2 .n1,.c2 .n4{display:none}<br />.c3 .n1,.c3 .n2{display:none}<br />.c4 .n2,.c4 .n3,.c4 .n6{display:none}<br />.c5 .n2,.c5 .n5{display:none}<br />.c6 .n5{display:none}<br />.c7 .n1,.c7 .n2,.c7 .n3,.c7 .n7{display:none}<br />.c8{}<br />.c9 .n2{display:none}<br />.c0 .n7{display:none}<br /> <br />var num=0,size=1;<br />function addNumber(){<br />var clock=document.getElementById("mydemo").children[0];<br />clock.className="clock c"+(++num % 10);<br />return false;<br />}<br />function resize(){<br />var clock=document.getElementById("mydemo").children[0];<br />clock.style.fontSize=(++size % 20)+"px";<br />return false;<br />}<br /> http://www.999jiujiu.com/