摘要:
源码: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>DOM操作轮播图</title> <style> .swiper{ width: 640px; height: 320px; overflow: hid 阅读全文
摘要:
源码: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>DOM通过class属性设置样式</title> <style> .active{ background-color: red; } </style> 阅读全文
摘要:
思路: 思路: * 1、设定一个imagesSrcList集合,存放图片存储路径 * 2、通过DOM获取img标签 * 3、通过DOM获取所有button按钮标签 * 4、循环遍历btns,设置onclick点击事件函数,更换图片路径 源码: <!DOCTYPE html> <html lang=" 阅读全文