关于2018新版微信点击img出现弹出层效果
直接img标签会出现类似朋友弹出层效果,如果不想要则用div包裹起来。
如果是类似于映客直播之类的请使用背景图片做为封面图片1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17<div class="poster" style="background-image: url(https://file.feiniaolive.com/fc5026378c1b5540aa7085ab68ce5858?imageView2/1/w/480/h/270/format/png/interlace/1/q/75|imageslim)">
</div>
<style>
.poster {
width: 100%;
height: 100%;
position: fixed;
top: 0;
bottom: 0;
left: 0;
bottom: 0;
background: rgba(0,0,0.7);
background-size: cover;
background-position: center center;
background-repeat: no-repeat;
}
</style>
关于微信浏览器中 高度问题
导航栏+iphone状态栏高度: 64px = 导航栏44+状态栏20
http://www.25xt.com/allcode/9581.html
http://www.25xt.com/html5css3/14584.html
判断是iOS手机还是andorid手机 进行控制”关注按钮”的位置 解决安卓手机视频最优先
1 | var ua = navigator.userAgent.toLowerCase(); |
判断微信浏览器内核
手机打开网址 http://debugx5.qq.com/
android是腾讯x5
iOS不是腾讯x5
微信分享
今天遇到微信分享输入了””,而在页面中直接用php模板语言输出进js
中报错.
1 | 输入: titlte "天空之城"梦想起航 |
但是微信自动把””闭合,不允许这样输出导致js出错,进而微信分享报错
解决: 在页面中输出出来所有的php模板语言然后js获取
html
1 | <!-- 微信分享 --> |
js
1 | <!-- 配置微信 --> |
微信支付
1 | // 支付 |