gpt4 book ai didi

css - 如何将 x 放在文本字段中?

转载 作者:行者123 更新时间:2023-11-28 15:12:49 24 4
gpt4 key购买 nike

我试图将字体 Awesome 中的可点击时间 (x) 放入文本字​​段中,但我无法做到,而且缺少所有类的文档...这是我得到的链接

  <input type="text" class="form-control" id="copy-text">
<span>
<i class="fa fa-times xicon" aria-hidden="true"></i>
</span>

<span class="input-group-btn">

<button id="copy-emoji" data-clear-btn="true" class="form-control btn-large btn-lg btn btn-success" type="button" onclick="copyall()">COPY</button>

</span>
</div>

https://jsfiddle.net/2Lm6fup1/

谢谢

最佳答案

您可以相对于 .input-group 定位图标。

.xicon.over {
position: relative;
top: 11px;
left: -24px;
width: 0;
z-index: 999;
cursor: pointer;
}

https://jsfiddle.net/2Lm6fup1/5/

关于css - 如何将 x 放在文本字段中?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47957526/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com