[英]Place Button next to input text
如何在这张照片中的输入文本旁边放置按钮?
我有这个代码:
<form action='/posts/comment/{{id}}' method='POST'>
<input class="form-control" type="text" name='comment' id='comment' placeholder="Comment as {{name}}..." aria-label="Comment as {{name}}...">
</form>
根据问题和屏幕截图回答。
button{ margin-left:-6px; border-left:none; }
<form action='/posts/comment/{{id}}' method='POST'> <input class="form-control" type="text" name='comment' id='comment' placeholder="Comment as {{name}}..." aria-label="Comment as {{name}}..."> <button>Save Comment </button> </form>
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.