如何将每两个按钮放在一行上,并在每行之间分隔边框?
我在 Angular 8 上工作,我需要使用它来进行网页设计 html 和 css 或 bootstrap
我面临的问题是如何将每两个 button
放在
一起并带有边框,并在完成第一行后
转到带有新按钮的新行。
我尝试什么
<input
hidden
type="file"
/>
<button >
Upload
</button>
<div style="width:400px;">
<div style="float: left; width: 130px">
<button
color="primary">
Download Template
</button>
</div>
<div style="float: right; width: 225px">
<button
color="primary">
Export
</button>
</div>
</div>
I work on angular 8
I need to make web page design using
html and css or bootstrap
my issue i face how to put every two buttons
beside
each other with border and after finish first row
go to new row with new buttons .
what i try
<input
hidden
type="file"
/>
<button >
Upload
</button>
<div style="width:400px;">
<div style="float: left; width: 130px">
<button
color="primary">
Download Template
</button>
</div>
<div style="float: right; width: 225px">
<button
color="primary">
Export
</button>
</div>
</div>
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
使用
显示:
在行上的flex 将每一行分为两列,width 50%
在行儿童上。然后,您可以将边框应用于行。
Split each row into two columns using
display: flex
on the row andwidth 50%
on the row children.Then you can apply a border to the row.