docs: fix webm compat (#38615)

This commit is contained in:
afc163 2022-11-17 12:15:07 +08:00 committed by GitHub
parent 415cc833cf
commit 9c670dfdf6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -54,12 +54,20 @@ export default function Banner({ children }: BannerProps) {
/>
<video
src="https://mdn.alipayobjects.com/huamei_iwk9zp/afts/file/A*uYT7SZwhJnUAAAAAAAAAAAAADgCCAQ"
style={{ height: '100%', objectFit: 'contain' }}
autoPlay
muted
loop
/>
>
<source
src="https://mdn.alipayobjects.com/huamei_iwk9zp/afts/file/A*uYT7SZwhJnUAAAAAAAAAAAAADgCCAQ"
type="video/webm"
/>
<source
src="https://gw.alipayobjects.com/mdn/rms_08e378/afts/file/A*XYYNQJ3NbmMAAAAAAAAAAAAAARQnAQ"
type="video/mp4"
/>
</video>
<div
style={{