- 小程序中打开的h5页面长按保存图片保存失败,多个安卓手机不行,一台苹果手机可以
1、小程序的“uploadFile合法域名”和“downloadFile合法域名”都设置了 2、H5的图片片段 <div style="height: 200px"> <img src="@/assets/images/banner.png" style="-webkit-touch-callout: none" /> </div> 3、报错截图 [图片] 4、转发给朋友和收藏都不能用
2023-05-29 - 侧边栏(ios设备)使用video标签全屏后 只能听见声音 不能看见画面
侧边栏(ios设备)使用video标签全屏后 只能听见声音 不能看见画面 关闭侧边栏的时候 会看到全屏的video在页面后方 补充: 1、只有在ios设备+侧边栏的情况下有问题 2、ios设备+企业微信应用形式打开 没有问题 3、安卓设备+侧边栏 的情况下也没有问题 4、代码 function isFullscreen() { return ( document.fullscreenElement || document.webkitFullscreenElement || document.mozFullScreenElement || document.msFullscreenElement ) } function requestFullscreen(elem) { if (elem.requestFullscreen) { elem.requestFullscreen() } else if (elem.mozRequestFullScreen) { /* Firefox */ elem.mozRequestFullScreen() } else if (elem.webkitRequestFullscreen) { /* Chrome, Safari & Opera */ elem.webkitRequestFullscreen() } else if (elem.msRequestFullscreen) { /* IE/Edge */ elem.msRequestFullscreen() } } class FullscreenVideo extends React.Component { static propTypes = { src: PropTypes.string, } static defaultProps = { src: '', } componentDidMount() { document.addEventListener('fullscreenchange', this.fsHandler) document.addEventListener('webkitfullscreenchange', this.fsHandler) document.addEventListener('mozfullscreenchange', this.fsHandler) document.addEventListener('MSFullscreenChange', this.fsHandler) } componentWillUnmount() { document.removeEventListener('fullscreenchange', this.fsHandler) document.removeEventListener('webkitfullscreenchange', this.fsHandler) document.removeEventListener('mozfullscreenchange', this.fsHandler) document.removeEventListener('MSFullscreenChange', this.fsHandler) } fsHandler = () => { if (!isFullscreen() && this.videoRef) { this.videoRef.pause() } } play = () => { this.videoRef.play() requestFullscreen(this.videoRef) } render() { const {src} = this.props return ( <video ref={videoRef => (this.videoRef = videoRef)} height="0" width="100%" webkitPlayinline playinline > <source src={src} /> </video> ) } } export default FullscreenVideo
2020-07-17 - 企业微信mac桌面版点击返回按钮无效 windows桌面版没问题
在桌面版企业微信(mac版)打开应用 单击返回无效 但是windows版下没问题 请问这是什么原因呢 [图片]
2020-04-01