Metro练习(1)

听老师经常提起Metro,是一种趋势吧,不是很明白,但是win8的界面好像是用其做的,但是稍稍练习了下颜色模块,还可以,鼠标放上去了会变色的,这应该是最基本的一步吧~~

Metro
 1 <script type="text/javascript">
 2     function changeColor(dom){
 3         dom.style.backgroundColor="#99CCFF";
 4     }
 5     function backColor(dom){
 6         dom.style.backgroundColor="#00CCFF";
 7     }
 8 </script>
 9 <style type="text/css">
10     .message{
11         width:400px;
12         height:100px;
13         border:1px dashed #000;
14         margin:1px auto;
15         background-color:#00CCFF;        
16     }
17 </style>
18 </head>
19 
20 <body>
21     <div class = "message" onmouseover = "changeColor(this)" onmouseout = "backColor(this)">one
22     </div>
23     <div class = "message" onmouseover = "changeColor(this)" onmouseout = "backColor(this)">two
24     </div>
25     <div class = "message" onmouseover = "changeColor(this)" onmouseout = "backColor(this)">three
26     </div>
27     <div class = "message" onmouseover = "changeColor(this)" onmouseout = "backColor(this)">four
28     </div>
29     <div class = "message" onmouseover = "changeColor(this)" onmouseout = "backColor(this)">five
30     </div>
31     <div class = "message" onmouseover = "changeColor(this)" onmouseout = "backColor(this)">six
32     </div>
33 </body>
34 </html>

转载于:https://www.cnblogs.com/zyh-bg/archive/2012/08/08/2629126.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值