![](https://img-blog.csdnimg.cn/20201014180756754.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
前端开发
daydaymiddle
这个作者很懒,什么都没留下…
展开
-
轮播图插件swiper
刚用swiper做轮播图的时候,我一直做不出来,后来发现原来我只引入了swiper的js,没有引入swiper的css. 这两个都是必须引入的,而jquery库无论有没有都能运行swiper. 基本结构示例: <!--大图开始--> <style> img{width:100%;} .swiper原创 2017-06-05 13:59:58 · 2393 阅读 · 0 评论 -
兼容性滚动顶部出现
<style> #top_fixed { width: 100%; height: 50px; z-index: 999; max-width: 640px; min-width: 320px; } .top_fixed { width: 100%; height: 50px; background-color: #13a4db;原创 2017-06-12 10:42:14 · 198 阅读 · 0 评论 -
判断客户端使用的是安卓还是苹果,然后加载对应的css文件
<script type="text/javascript" charset="utf-8">var browser = { versions: function () { var u = navigator.userAgent, app = navigator.appVersion; return { //移动终端浏览器版本信息 ios: !!u.match(/\(i[^;]+;( U;)? C原创 2017-10-09 17:21:29 · 3975 阅读 · 0 评论 -
js检测是否为PC平台
<script> //平台、设备和操作系统 var system ={ win : false, mac : false, xll : false }; //检测平台 var p = navigator.platform; s原创 2017-10-20 11:05:18 · 939 阅读 · 0 评论 -
font awesome 的使用
font awesome 的使用 最终目的:本地使用font awesome的图标(远程太坑,经常卡) 1.http://fontawesome.dashgame.com/ 到这个网址 “立即下载”。 2.把下载的目录放到项目中,在项目中引入 3.在网站的首页直接ctrl+f 搜索想要的图标(什么circle,arrow啊基础的英语搜一搜),然后在需要的地方放上span或者i标签,同时加上cla...原创 2019-03-18 10:00:10 · 399 阅读 · 0 评论