Table of Contents
回复内容:
Home Web Front-end H5 Tutorial 微信内置浏览器 x5内核 有哪些坑及解决方案?

微信内置浏览器 x5内核 有哪些坑及解决方案?

Jun 07, 2016 am 08:42 AM

回复内容:

QQ浏览器X5内核问题汇总 —— 前端观察

俺只是大自然的搬运工 T_T 全等于移动端IE6,各种坑。 请参考 X5内核的官方归纳: 腾讯X5浏览服务

另外,如果有遇到其他一些问题可以加入X5内核反馈QQ群,直接进行询问,QQ群号:
434421502 移动届的ie6。
居然不支持flex, 差评 今年年初的时候我在一家公司实习,当时有一个需求是这样的,我们有一个页面的展示,当用户滑动到最后一个页面的时候有一个二维码,用户可以长按识别。然而,当时的情况是我的Android可以正常识别,iphone则不行。

当时已经是临近上线,我们想了许多可能性,甚至想到了会不会是DOM结构的嵌套还有浏览器的兼容性的问题。然而经过多次试错发现,只要把二维码放在首页便可以正常识别,放在第二页,第三页都不行。

进一步的又发现,就算是在第一个页面,你只要滑动一下,二维码便不能正常识别。当时就想到是浏览器兼容性的问题了,于是进一步的实验,发现有可能是 webkit-transform 元素的问题,然后就把这个问题提交给前端解决,我就屁颠屁颠跑去赶最后一班地铁了。(当时我还是一个后端)

后来公司的前端的解决方式简单粗暴,直接把 css translate 干掉然后产品上线,但是这样就还是有些效果做不出来。再后来我就离职了,之后的发展据说是网页改版了。

刚百度了一下,iphone微信页面二维码长按识别不了,这个百度知道的回答(当时这个问题还没有答案)里面其实跟我们当时的做法有异曲同工之处。 x5更新了,此问题已不存在

----------千万不要在X5环境下使用vw/vh单位,坑死你没商量 自带样式巨丑无比。请使用-webkit-appearance干掉。
visited的效果巨丑无比,请使用:visited干掉。
不支持put/patch/delete等请求。如果你用到了,那就找后端想办法换成POST吧。例如我们全部是发的POST请求,然后 headers: {'X-HTTP-Method-Override': 'PATCH'}。

待续,一时半会儿想不起那么多了。 坑的要死,技术层面还没到自己开发个浏览器呢,自己开始搞ie6了 经测试,不支持 3D transform。

不过反正那玩意儿就是彻头彻尾的垃圾。水平跟屎一样还非要自己折腾一套所谓浏览器内核。 基于android 4.2的webkit,不支持flex。
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

Repo: How To Revive Teammates
1 months ago By 尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
2 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
Hello Kitty Island Adventure: How To Get Giant Seeds
4 weeks ago By 尊渡假赌尊渡假赌尊渡假赌

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

How to Add Audio to My HTML5 Website? How to Add Audio to My HTML5 Website? Mar 10, 2025 pm 03:01 PM

This article explains how to embed audio in HTML5 using the <audio> element, including best practices for format selection (MP3, Ogg Vorbis), file optimization, and JavaScript control for playback. It emphasizes using multiple audio f

How to Use HTML5 Forms for User Input? How to Use HTML5 Forms for User Input? Mar 10, 2025 pm 02:59 PM

This article explains how to create and validate HTML5 forms. It details the <form> element, input types (text, email, number, etc.), and attributes (required, pattern, min, max). The advantages of HTML5 forms over older methods, incl

How do I use the HTML5 Page Visibility API to detect when a page is visible? How do I use the HTML5 Page Visibility API to detect when a page is visible? Mar 13, 2025 pm 07:51 PM

The article discusses using the HTML5 Page Visibility API to detect page visibility, improve user experience, and optimize resource usage. Key aspects include pausing media, reducing CPU load, and managing analytics based on visibility changes.

How do I use viewport meta tags to control page scaling on mobile devices? How do I use viewport meta tags to control page scaling on mobile devices? Mar 13, 2025 pm 08:00 PM

The article discusses using viewport meta tags to control page scaling on mobile devices, focusing on settings like width and initial-scale for optimal responsiveness and performance.Character count: 159

How do I handle user location privacy and permissions with the Geolocation API? How do I handle user location privacy and permissions with the Geolocation API? Mar 18, 2025 pm 02:16 PM

The article discusses managing user location privacy and permissions using the Geolocation API, emphasizing best practices for requesting permissions, ensuring data security, and complying with privacy laws.

How to Create Interactive Games with HTML5 and JavaScript? How to Create Interactive Games with HTML5 and JavaScript? Mar 10, 2025 pm 06:34 PM

This article details creating interactive HTML5 games using JavaScript. It covers game design, HTML structure, CSS styling, JavaScript logic (including event handling and animation), and audio integration. Essential JavaScript libraries (Phaser, Pi

How do I use the HTML5 Drag and Drop API for interactive user interfaces? How do I use the HTML5 Drag and Drop API for interactive user interfaces? Mar 18, 2025 pm 02:17 PM

The article explains how to use the HTML5 Drag and Drop API to create interactive user interfaces, detailing steps to make elements draggable, handle key events, and enhance user experience with custom feedback. It also discusses common pitfalls to a

How do I use the HTML5 WebSockets API for bidirectional communication between client and server? How do I use the HTML5 WebSockets API for bidirectional communication between client and server? Mar 12, 2025 pm 03:20 PM

This article explains the HTML5 WebSockets API for real-time, bidirectional client-server communication. It details client-side (JavaScript) and server-side (Python/Flask) implementations, addressing challenges like scalability, state management, an

See all articles