gpt4 book ai didi

html - (HTML/CSS) 如何让

转载 作者:太空宇宙 更新时间:2023-11-04 09:59:45 24 4
gpt4 key购买 nike

我试过这个:

<div class="music8">
<audio controls>
<source src="http://mcclures.tech/ect/song.mp3">
<source src="http://mcclures.tech/ect/shatterme.mp3">
</audio>
</div>

和 CSS

.music8 {
position: fixed
bottom: 0
}

好像不行。我做错了什么?

最佳答案

首先,在 css 中声明一个元素属性后,您的 css 语句缺少一些结尾,您以分号结尾。其次,最佳做法是指定左侧或右侧以及您的底部位置。所以它看起来像下面这样:

这是一个 fiddle 给你看Fiddle Demo

.music8 {
position: fixed;
bottom: 0;
left:0;
}

关于html - (HTML/CSS) 如何让<audio>标签跟随页面?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38428875/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com