没有技术含量,只是用来练习代码逻辑的。为了代码结构清晰,我把逻辑控制部分写在全局变量里,用户界面操作封装在UI对象里,大概就这样了。仅供参考。工作时候,我的编码风格有人吐槽太乱了,所以我想试着写一个不是那么乱的东西出来。。
复制代码 代码如下:
MSIE is SB
#box{position:absolute;left:50%;top:50%;margin-left:-300px;margin-top:-300px;}
.x,.y{background:#ddd;position:absolute;width:80px;height:80px;font-size:30px;text-align:center;line-height:80px;font-weight:700;font-family:arial;z-index:1;}
.x{z-index:30;}
.r2{background: #eee4da;}
.r4{background: #ede0c8;}
.r8{color: #f9f6f2;background: #f2b179;}
.r16{ color: #f9f6f2;
background: #f59563; }
.r32{color: #f9f6f2;
background: #f67c5f; }
.r64{ color: #f9f6f2;
background: #f65e3b; }
.r128{ color: #f9f6f2;
background: #edcf72;}
.r256{ color: #f9f6f2;
background: #edcc61;}
.r512{ color: #f9f6f2;
background: #edc850;}
.r1024{ color: #f9f6f2;
background: #edc53f;}
.r2048{ color: #f9f6f2;
background: #edc22e;}
以上就是本文所述的全部内容了,希望大家能够喜欢。



