html - 如何让我的顶部栏在一行中包含我的所有 div?
问题描述
我正在顶部栏中构建一个带有信任框(信任试点块)的网站。我的信任箱被推到顶栏下方。我希望一切都在同一条线上,信任箱一直位于右侧。我如何实现这一目标?
顺便说一句,当我有时在较小的屏幕上遇到这种情况时,如何防止包含 trustbox 的 div 切断 trustbox?
我试过这个:
.header-top-bar-area {
display: inline-block
float: left
}
我已经为左侧的位置、电子邮件和电话部分的信息部分尝试了上述 CSS 内容。
.trustbox {
white-space: nowrap;
}
这适用于信任箱,但它会将信任箱向下推。
更新:
<div class="trustbox header-top-bar-area col-xs-fit area-right" style=" white-space: normal; float: right; padding-top:5px;">
解决方案
推荐阅读
- javascript - 如何在 discord.js 中获取不和谐服务器的名称和图片
- python - 如果内置文件 sprite.py 出错怎么办?
- javascript - Node js FileHandle读取方法抛出无效参数错误
- r - 在ggplot2中手动更改形状将颜色从实心变为轮廓?
- javascript - npm 无法安装全局包?
- android - MaterialDatePicker 很慢
- python - Keras ImageDataGenerator 与来自 DataFrame 的附加列
- regex - 如何从字符串中提取第 n 次出现的正则表达式匹配?
- javascript - 如何用nodejs写多个文件并表达
- rest - 为什么我得到错误`kafka.Client` is not a constructor,同时在`npm kafka-node`上这是创建Kafka连接的方式?