gpt4 book ai didi

html - 双击复选框会在复选框右侧创建蓝色光标

转载 作者:太空宇宙 更新时间:2023-11-04 09:34:37 24 4
gpt4 key购买 nike

当我双击复选框时,它会创建蓝色光标或垂直线或复选框的右侧,我尝试在每个输入上添加 css 属性,例如填充或边距,但没有奏效。另请参见图片。

enter image description here

HTML

<div class="fbox3 nspan " id="sendWelcomeEmail">
<input id="sendWelcomeEmail1" name="sendWelcomeEmail" class="label-revert " checked="true" type="checkbox" value="true">
<label for="sendWelcomeEmail1" style="display:inline-block !important;padding-top:0 !important;padding-bottom:0 !important;padding-right: 0 !important; margin-right: 0px !important; "></label>
<span style="display:inline-block; font-family: latolight, helvetica, arial, sans-serif ; font-weight: 300; color: #969696 !important; font-size: 16px;">Send</span>
<input type="hidden" id="sendWelcomeEmailHidden" name="_sendWelcomeEmail" value="on">
</div>

CSS

#user-profile-form label > span {
margin-right: 0 !important;}

最佳答案

双击尝试选择元素。这条蓝线是选定的区域。为避免这种情况,您应该使用一些 css 规则:

#sendWelcomeEmail
{
-webkit-user-select: none !important; /* Chrome all / Safari all */
-moz-user-select: none !important; /* Firefox all */
-ms-user-select: none !important; /* IE 10+ */
user-select: none !important; /* Likely future */
}

关于html - 双击复选框会在复选框右侧创建蓝色光标,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40460121/

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