星空网 > 软件开发 > 网页设计

2015.08.11

简单的demo,点击切换背景颜色切换,附上代码。


.html文件

<div> class='red' id="box">美美哒!...........</div>

.css文件

.red{  width:100px;  height:100px;  background-color:red;  border-radius:0 70px 0 60px ;  transition-duration:1s;}.yellow{ width:150px; height:150px; border-radius:80px 0 100px 0; transition-duration:1s; background-color:yellow;}

 

.js文件

window.onload = function(){ var box = document.getElementById('box'); box.onclick = toYellow;};function toRed(){  this.className ='red';  this.onclick = toYellow;}function toYellow(){ this.className ='yellow'; this.onclick = toRed;}

 




原标题:2015.08.11

关键词:

*特别声明:以上内容来自于网络收集,著作权属原作者所有,如有侵权,请联系我们: admin#shaoqun.com (#换成@)。

德国VAT申报每年有几次申报机会?:https://www.kjdsnews.com/a/1387928.html
德国VAT申报每年应提交几次申报?:https://www.kjdsnews.com/a/1387929.html
德国VAT申报指南让你轻松完成申报:https://www.kjdsnews.com/a/1387930.html
德国VAT申报的步骤及流程指南:https://www.kjdsnews.com/a/1387931.html
德国VAT申报的最新规定及申报周期:https://www.kjdsnews.com/a/1387932.html
多国启用人民币结算,德国大罢工波及全球海运,南非对华产品反倾销,等|本周外贸大事:https://www.kjdsnews.com/a/1387933.html
在古巴做游轮 古巴旅游项目:https://www.vstour.cn/a/363194.html
西藏旅游攻略自驾游需要多少天 去西藏旅游自驾游要多久时间:https://www.vstour.cn/a/363195.html
相关文章
我的浏览记录
最新相关资讯
海外公司注册 | 跨境电商服务平台 | 深圳旅行社 | 东南亚物流