摘要: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta http-equiv 阅读全文
posted @ 2019-04-18 19:27 Asaru 阅读(112) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta http-equiv 阅读全文
posted @ 2019-04-18 19:25 Asaru 阅读(128) 评论(0) 推荐(0) 编辑
摘要: var oBox = document.getElementById("box"); var pic = document.querySelectorAll("#box>img"); var timer = null; var iNow = 0; var n = 0; setInterval(fun 阅读全文
posted @ 2019-04-18 10:44 Asaru 阅读(128) 评论(0) 推荐(0) 编辑
摘要: HTML <div id="box"> <ul id="ul"> <li><img src="随堂案例/img/1.jpg" alt=""></li> <li><img src="随堂案例/img/2.jpg" alt=""></li> <li><img src="随堂案例/img/3.jpg" a 阅读全文
posted @ 2019-04-18 10:43 Asaru 阅读(110) 评论(0) 推荐(0) 编辑
摘要: function getStyle(ele, attr) { if (ele.currentStyle) { return ele.currentStyle[attr]; } else { return getComputedStyle(ele, false)[attr]; } } function 阅读全文
posted @ 2019-04-18 10:38 Asaru 阅读(89) 评论(0) 推荐(0) 编辑