html - 将一个 float 的 div 放置在另一个旁边

标签 html css

我是初学者,希望得到一些帮助,看看我在哪里犯了错误。我想要这样的文字“?”在其下方的文本旁边左对齐。提前致谢。

enter image description here

HTML:

<div class="clear"></div>                   
<div style="text-align:center;margin:10px 0 20px 0;">
<!---<img src="/images/test.jpg"/>-->
<a class="tooltip" title="Search in the box">?</a> 
<div style="font-size:16px">Choose Your Carrier:</div>

最佳答案

<a class="tooltip" title="Search in the box">?</a>

进入div

<div style="font-size:16px; word-wrap: none;">Choose Your Carrier: <a class="tooltip" title="Search in the box">?</a>
</div>

关于html - 将一个 float 的 div 放置在另一个旁边,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23200832/

相关文章:

html - 使用 <form> 上传文件不会发送文件

html - 使用 :after psudeo selector? 清除 float

html - 如何在移动视口(viewport)中将 flexbox 导航分成两行

css - 带有 CSS 元素的 Html5 在缩放时移动

css - 将边距应用于除 iframe 之外的所有内容

html - 如何使用模糊滤镜使图片作为背景

css - bootstrap 3 使 div 高度为父 div 的 50%

html - CSS 表格高度在 IE8 中溢出容器 div

html - 使用 html 表格时,在 CSS3 多列中强制分栏

html - 为什么背景有时显示有时不显示?