随笔分类 -  前端

摘要:备注:在jsp之中,类似的是varStatus 需求: 有时候,我们需要操作foreach遍历后的元素,比如说,使用js给遍历的某个元素绑定点击事件;那么如何通过标签的id找到那个元素呢? 解决: 环境:springboot+jdk1.8+idea html代码: <!DOCTYPE html><h 阅读全文
posted @ 2022-09-14 19:54 2337 阅读(741) 评论(0) 推荐(0) 编辑
摘要:Animate.css是一个css动画库,可以做出一些非常好看的动画; 官网:https://animate.style Animate.css非常容易上手,但是动画是一开始就加载出来,不能控制; 如何通过js事件,比如点击事件控制呢? 代码: <html> <head> <meta charset 阅读全文
posted @ 2022-09-12 14:22 2337 阅读(211) 评论(0) 推荐(0) 编辑
摘要:添加此标签 <meta name="viewport" content="width=device-width, initial-scale=1.0"> 图片自适应: <div class="msg_desc"><img style="max-width:100%;overflow:hidden;" 阅读全文
posted @ 2022-09-10 16:22 2337 阅读(22) 评论(0) 推荐(0) 编辑
摘要:图片等静态资源不显示: 1、不要把图片等静态资源放在web-inf目录下 2、删除out,target文件夹,重新编译 3、url的路径是否错误 错误路径: http://localhost:8080/pic/wyy.png 正确路径是:http://localhost:8080/项目名/pic/w 阅读全文
posted @ 2022-07-14 09:37 2337 阅读(98) 评论(0) 推荐(0) 编辑
摘要:html页面中插入html的标签 方法1: 使用标签: <textara> </textara>标签 方法2: 使用JS: document.getElementById("id").innerText="要插入的标签" document.getElementById("id").innerHtml 阅读全文
posted @ 2022-07-07 16:27 2337 阅读(325) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示