摘要: //通过id名称获取元素对象 function getid(idName){ return document.getElementById(idName); } //随机获取min-max的随机整数 function getRand(min,max){ return parseInt(Math.ra 阅读全文
posted @ 2019-11-21 21:20 吴小明- 阅读(249) 评论(0) 推荐(0) 编辑
摘要: 需求:在1秒内,由一个颜色变到另一个颜色,不是1秒后再变色。 <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initi 阅读全文
posted @ 2019-11-21 20:06 吴小明- 阅读(875) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>DIV+CSS+JS实现色彩渐变字体</title> <style type="tex 阅读全文
posted @ 2019-11-21 17:31 吴小明- 阅读(390) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, 阅读全文
posted @ 2019-11-21 16:28 吴小明- 阅读(110) 评论(0) 推荐(0) 编辑