gpt4 book ai didi

javascript - 在按钮 Angular 上打勾

转载 作者:太空宇宙 更新时间:2023-11-04 05:55:40 26 4
gpt4 key购买 nike

我想在右上角的按钮上打勾。我将输入值设置为它给我一个带有刻度标记的按钮文本,我希望它应该放在右上角。

.buttoner{
background-color: #4CAF50;
border: none;
cursor: pointer;
height: 48px;
border-radius: 5px;
width: 10%;
}
     <input type="button" class="buttoner" value="buttoner&#10003"/></input>

我想要这样:

I want like this

最佳答案

enter image description here

.my-btn {
position: relative;
display: inline-block;
}
.buttoner {
background-color: #66bb6a;
border: none;
cursor: pointer;
height: 48px;
border-radius: 3px;
width: 120px;
text-align: center;
color: white;
line-height: 48px;
font-size: 14px;
font-weight: bold;
}
.my-btn .fa-check {
position: absolute;
top: 5px;
right: 10px;
color: #fff;
font-weight: normal;
}
<!DOCTYPE html>
<html>
<head>
<title>Button with tick mark</title>
<link href="https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet" type="text/css">
</head>
<body>
<div class="my-btn">
<input type="button" class="buttoner" value="Button"/>
<i class="fa fa-check"></i> </div>
</body>
</html>

关于javascript - 在按钮 Angular 上打勾,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57832142/

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