Bootstrap 4 将物品放在一行中
例如,我想在底部的一行中设置引用 "关联 1 留下来", "Link 2 center bottom", "Link 3 right bottom", 但 "Link 2" 不集中 PC 和移动设备。
HTML:
CSS:
https://i.stack.imgur.com/p86Fm.jpg
HTML:
<div>
<a href="/contact" id="contact">Link 1</a>
<a href="/repo" id="link">Link 2</a>
<a href="/json" id="api">Link 3</a>
</div>
CSS:
#contact{
float: left;
font-size: 20px;
padding-top: 0.17em;
}
#api{
float: right;
font-size: 20px;
padding-top: 0.17em;
}
#link{
display: inline;
font-size: 30px;
padding-right: 2.5%;
}
https://i.stack.imgur.com/p86Fm.jpg
没有找到相关结果
已邀请:
6 个回复
奔跑吧少年
赞同来自:
和
, 轻松实现它。
奔跑吧少年
赞同来自:
灵活的
管道管道
http://getbootstrap.com/docs/4.1/utilities/flex/
/
flex-md-row
: 显示 inline 用于中型和大型设备
https://i.stack.imgur.com/5HkNs.png
2.
Flex-栏
: 要在移动设备中的列中显示
https://i.stack.imgur.com/qeIXf.png
</link>
詹大官人
赞同来自:
卫东
赞同来自:
和
适用于容器。
使用实用程序 justify-content 在集装箱里 flexbox, 更改元素对齐 flex 在主轴上 /这里 x 开始,轴 y 为方向 flex: 柱子/. 从“开始”菜单中选择 /默认浏览器/, 结束,中心,之间。 - 初始加载
奔跑吧少年
赞同来自:
:
它确实如此 div 在下半部分:
/如你所说:
.../
冰洋
赞同来自:
欲获得更多信息 :
https://getbootstrap.com/docs/4.1/components/navs/
/