[英]How to add a horizontal line on the right after a button in the left in css?
I want to add a line just after this button on the right side.我想在右侧的这个按钮之后添加一行。 Thank you.谢谢你。
This is the code:这是代码:
<button onClick={()=> this.onAddContact(test.name)} className="ds-fake-label">
<svg xmlns="http://www.w3.org/2000/svg" className="arrow-add-contact" height="24" viewBox="0 0 24 24" width="24">
<path d="M10 9V5l-7 7 7 7v-4.1c5 0 8.5 1.6 11 5.1-1-5-4-10-11-11z" />
<path d="M0 0h24v24H0z" fill="none" />
</svg>
Add Contact
</button>
You can add a div
and style it as您可以添加一个div
并将其设置为
.line{ border-bottom:1px solid black; width:50%; position:absolute; left:65px; }
<.DOCTYPE html> <html> <head> </head> <body> <button onClick="{() => this.onAddContact(test.name)}" className="ds-fake-label" >Button</button> <div> <div class="line"></div> </div> </body> </html>
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.