video can not fill in iphoneXR

Disclaimer: This article is a blogger original article, shall not be reproduced without the bloggers allowed. https://blog.csdn.net/hua_ban_yu/article/details/86676805

I found it impossible to fill in high video iphoneXR phone displays when using the video playback video, but otherwise the phone does not have this error.

solution:

Add a video label object-fit: cover;

Cause of the problem: Since the top iphoneXR and other phones are not the same, so the iphoneXR set up some processing, leading to find a video can not fill the entire height, all use

object-fit: cover; set fill so that the height and width

Guess you like

Origin blog.csdn.net/hua_ban_yu/article/details/86676805