摘要: 1. 从官网下载必要资源 https://www.swiper.com.cn/download/index.html#file1 2. 在项目中<head>中引入swiper.min.css <!-- Link Swiper's CSS --> <link rel="stylesheet" href 阅读全文
posted @ 2019-11-18 15:03 liuw_flexi 阅读(1459) 评论(0) 推荐(0) 编辑
摘要: 首先设置图片宽高占满屏幕 <img id="bgImg" src="./img/bg.png" width='100%' height='100%'/> 然后设置 /*背景图*/ #bgImg{ object-fit: cover; left:0; bottom:0; position: absol 阅读全文
posted @ 2019-11-18 10:33 liuw_flexi 阅读(734) 评论(0) 推荐(0) 编辑
摘要: 最好用background-color:rgba(37,77,113,1); 因为用opacity会让所有自标签都改变 阅读全文
posted @ 2019-11-18 10:24 liuw_flexi 阅读(209) 评论(0) 推荐(0) 编辑
摘要: 子标签 的css 加这句overflow: hidden; 设置禁止子标签超出父标签产生了滚动条 阅读全文
posted @ 2019-11-18 10:22 liuw_flexi 阅读(478) 评论(0) 推荐(0) 编辑
摘要: 用script标签,src是js文件路径 <script type="text/javascript" src="./js/udc.js"></script> 如果项目中用到了jquery,同样src是jquery文件路径 <script type="text/javascript" src="./ 阅读全文
posted @ 2019-11-18 10:08 liuw_flexi 阅读(541) 评论(0) 推荐(0) 编辑