Mobile Video Tags default top-of-the-top solution

Source: Internet
Author: User
Overview

On the mobile side, such as open a page above, if there is a video tag, the video tag will often appear the default top of the situation, the general solution is not need to see it when you add a display:none to hide. Today, when browsing the Tgideas document library, I stumbled upon another scheme, which was recorded for later development, and believed to be useful to others.

Solution Solutions

Add the following style to the style:

.compatibleStyle {    backface-visibility:hidden;    -webkit-backface-visibility:hidden; /* Chrome 和 Safari */    -moz-backface-visibility:hidden;  /* Firefox */    -ms-backface-visibility:hidden;  /* Internet Explorer */    -webkit-perspective: 0;    -webkit-transform: translate3d(0,0,0);    visibility:visible;}

Then add the Compatiblestyle class to the video tag.

Resources:
Tgideas Mobile-Video components

Mobile Video Tags default top-of-the-top solution

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.