上一页 1 ··· 11 12 13 14 15 16 17 18 19 ··· 52 下一页
摘要: 实现效果: map.js: (function (win) { function SurroundMap(mapId, lng, lat, searchCallback, options = {}) { // 创建Map实例 let _this = this; let map = new BMap. 阅读全文
posted @ 2020-07-01 16:06 Nyan 阅读(2055) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>百度地图预研</t 阅读全文
posted @ 2020-06-30 22:45 Nyan 阅读(444) 评论(0) 推荐(0) 编辑
摘要: 官方提供的分享插件进行分享,在官网里已经找不到文档了,但插件还是能用的。 一、代码结构 分享代码可以分为三个部分:HTML、设置和js加载 html: <div id="share"> <div class="bdsharebuttonbox" data-tag="share_1"> <a clas 阅读全文
posted @ 2020-06-29 21:30 Nyan 阅读(401) 评论(0) 推荐(0) 编辑
摘要: 解决carousel获取偏移问题,此处获取元素之前的距离偏移量: carouselListItems.each(function (index) { $(this).click(function () { let itemOffset = parseInt($(this).offset().left 阅读全文
posted @ 2020-06-28 13:05 Nyan 阅读(328) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Carousel< 阅读全文
posted @ 2020-06-27 19:02 Nyan 阅读(64) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Carousel< 阅读全文
posted @ 2020-06-26 11:32 Nyan 阅读(96) 评论(0) 推荐(0) 编辑
摘要: 实现原理:父元素为定宽定高相对定位,且overflow:hidden,子元素为绝对定位高度继承父元素,宽度可计算或设置一个大值,通过绝对定位的left来决定显示的子元素 <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <m 阅读全文
posted @ 2020-06-25 17:51 Nyan 阅读(206) 评论(0) 推荐(0) 编辑
摘要: //根据长度生成随机码 app.randCode = function (len) { var charset = 'abcdefghkmnprstuvwxyzABCDEFGHKMNPRSTUVWXYZ0123456789'; var charsetLen = charset.length - 1; 阅读全文
posted @ 2020-06-23 11:21 Nyan 阅读(162) 评论(0) 推荐(0) 编辑
摘要: html: <div class="knowledge-left fl"> <div class="menu-item down"> <a href="javascript:;" class="sub-title">买房准备</a> <ul> <li> <a href="" class="activ 阅读全文
posted @ 2020-06-22 23:02 Nyan 阅读(241) 评论(0) 推荐(0) 编辑
摘要: 父元素为块级元素,子元素inline-block,因为行高而对不整齐调整位置 <div class="box-scan inline"> <span>扫描到手机</span> <div class="scan-to-mobile clearfix"> <span class="top-arrow"> 阅读全文
posted @ 2020-06-22 11:04 Nyan 阅读(980) 评论(0) 推荐(0) 编辑
上一页 1 ··· 11 12 13 14 15 16 17 18 19 ··· 52 下一页