[英]How can I resize an embedded video on GitHub flavoured markdown?
I recently added a video on a readme file on GitHub.我最近在 GitHub 的自述文件中添加了一个视频。 Although I was able to drag and drop the video, it automatically fills the entire width of the readme.
虽然我可以拖放视频,但它会自动填满自述文件的整个宽度。 I was wondering if there was a way to adjust the height and width the video?
我想知道是否有办法调整视频的高度和宽度?
I'm not entirely sure what you mean by "I was able to drag and drop the video", but assuming that generates a <video>
tag you should be able to add a height
or width
attribute to it, eg as shown in the MDN documentation:我不完全确定您所说的“我能够拖放视频”是什么意思,但假设生成一个
<video>
标签,您应该能够为其添加一个height
或width
属性,例如如图所示MDN 文档:
<video controls width="250">
<!-- ^^^^^^^^^^^ -->
<source src="/media/cc0-videos/flower.webm" type="video/webm">
<source src="/media/cc0-videos/flower.mp4" type="video/mp4">
Sorry, your browser doesn't support embedded videos.
</video>
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.