gpt4 book ai didi

html - 如何让这些 div 并排显示?

转载 作者:行者123 更新时间:2023-11-28 04:50:12 25 4
gpt4 key购买 nike

<分区>

我试图让这 3 个 div 并排显示,而不是彼此堆叠。理想情况下,它看起来像“< 1 >”,都在同一行上。我做错了什么?

HTML

<div id="controls-outer">
<div id="back-button">&laquo;</div>
<div id="current-slide">1</div>
<div id="forward-button">&raquo;</div>
</div>

CSS

#controls-outer{
margin:auto;
width:200px;
height:100px;
font-size: 30px;
color:black;
}

#back-button{
cursor:pointer;
}
#forward-button{
cursor:pointer;
}

#current-slide{

}

https://jsfiddle.net/9xzr24sy/

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