开发者

YouTube Video height doubled on iPhone and iPad

开发者 https://www.devze.com 2023-02-21 19:47 出处:网络
Embedded YouTube videos are displaying at double their specified height on mobile Safari. The dimensions are correct on a desktop. Here\'s an example, you\'ll see what I mean:

Embedded YouTube videos are displaying at double their specified height on mobile Safari. The dimensions are correct on a desktop. Here's an example, you'll see what I mean:

http:/开发者_Python百科/whinyliberal.com/throwback-thursday-crazy-libs-mourning-loss-of-a-tree/

I appreciate the help!


Developers are tracking this problem here:

http://groups.google.com/group/youtube-api-gdata/browse_thread/thread/861d5605093fdd7b


At first I was using a iOS detect script to apply a height of 1px, but then I found this much simpler solution:

Add scrolling="no" in the iframe declaration.

0

精彩评论

暂无评论...
验证码 换一张
取 消