gpt4 book ai didi

jquery - 在 中将文本换行到
旁边

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

enter image description here

在上面的屏幕截图中,代码如下所示:

<label>Venue:<label>
<div id='map-canvas'></div>
<span id='msg'>Ang Mo Kio Int, Singapore <input type='button' class='smallbutton' value='Append This Address'></span>

我不希望按钮在 map 下形成一个新行,而是在文本“Ang Mo Kio Int, Singapore”下形成一个新行。有什么想法吗?

更新 CSS:

label.form{
display:block;
text-align:left;
float:left;
}
#map-canvas {
height: 300px;
width: 500px;
margin: 0px;
padding: 0px;
display:inline-block;
}
#msg{
vertical-align:top;
}
input.smallbutton{
background-color: #2d89ef !important;
border: 1px solid transparent;
border-radius: 0 0 0 0;
color: white;
cursor: pointer;
display: inline-block;
font-size: 10px;
font-weight: 400;
height: 20px;
line-height: 10px;
margin-bottom: 1px;
margin-right: 10px;
min-height: 20px;
min-width: 60px;
outline: medium none;
padding: 4px 10px;
position: relative;
text-align: center;
vertical-align: middle !important;
}

最佳答案

我认为这可能是您使用的 google map Api 的问题。我不知道#msg 内容是如何加载到 map 中的。如果可以在 map 上嵌入输入元素,您应该查看 google map api 文档。

关于jquery - 在 <span> 中将文本换行到 <div> 旁边,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21366076/

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