如何让登录按钮链接与其他链接位于同一行? 我已尝试调整 anchor 标记的边距和填充,但它不起作用。
HTML代码:
<a data-toggle="modal" role="button" href="#myModal">
<img border="0" src="/images/login.jpg">
</a>
代码有什么问题?
最佳答案
将此添加到 img
CSS:
a[data-toggle="modal"] > img {margin: 13px 0;}
关于html - 使登录链接与其他链接对齐,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15304385/