HMTL5 's video in the Pit of IOS7

Source: Internet
Author: User

Just say the question.

Test equipment, ipod

When we play the video on the mobile side, the general use of the H5, OK, here are a few differences (as far as I can see) to share with you,

1, in the IOS7, the video element is required to determine the size of (width and height are required), otherwise, you will see a very small video in that disgusting you,

When we write code debugging is usually open with chrome, so feel finished, not fixed wide high, or just set a width:100% what kind of, OK no problem, but get mobile device is really a question

Problem, so, to set the size!!!

2, on the IOS7 also has a special let me disgusting place is, your video element like Z-index Infinity, always will be dot, when I test is to add an element: position:fixed;z-index:9999;~~~

Yes, do not guess, must be invalid, is any place is covered by this mask, in addition to video that piece, point or will play video, hey. Then my solution was, when I created the mask,

Hide the video element (multiple methods) and then display the video again when the mask is removed.

It turns out that this method is the solution to my needs, but, really likes and dislikes ah ~ ~ ~

HMTL5 's video in the Pit of IOS7

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.