html - css - 如何规范继承之类的表单
问题描述
<ul>
<li><a href="{{ route('dashboard') }}">Panel</a></li>
<li><a href="{{ route('contact') }}">Contact</a></li>
<li><form style="display: inline;" method="POST" action="{{ route('logout') }}">
<button type="submit">Logout</button>
@csrf
</form></li>
</ul>
这是我的代码。但它似乎如下所示:
我该怎么做:
如果我使用button
andform
而不是a
它不整洁。如果你帮助我,我会很高兴。
解决方案
您可以使用边距顶部。例如 :
margin-top: 5px;
推荐阅读
- javascript - 为什么ajax重复内容
- python - 从字符串中提取数字时重复数字
- java - 如何在android的highcharts系列中设置附加数据?
- python - 如何在用户注册 Django 时添加新的数据库条目?
- testing - 将值传递给 mocha 中的其他测试用例
- node.js - 节点和反应应用程序与 nginx 连接问题
- python - Python Plotly:百分比轴格式化程序
- excel - 在 Excel 中选择数据作为某些单元格之间的组,然后将每个单元格除以组值以查找百分比
- batch-file - 如何在所有子文件夹中单独压缩所有文件并在之后删除原始文件
- javascript - Leaflet 中的 geoJSON:显示与列表中的值匹配的特征