gpt4 book ai didi

html - 单击并拖动按钮的副本

转载 作者:行者123 更新时间:2023-11-27 22:54:06 25 4
gpt4 key购买 nike

我不确定为什么会发生这种情况,它只发生在具有关联 href 的取消按钮上。有什么想法可以解决这个问题,使用户无法单击并拖动取消按钮的副本吗?

<html lang="en" xmlns="http://www.w3.org/1999/xhtml"
xmlns:th="http://www.thymeleaf.org"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:c="http://java.sun.com/jstl/core"
xmlns:f="http://java.sun.com/jsf/core">
<div id="cancelDiv" class="col-md-4" style="padding-left: 0.8rem">
<a id="cancelButton" class="btn btn-primary"
th:href="${b2bDevLink}" target="_self"
style="text-decoration: none; color: white">Cancel</a>
</div>

enter image description here

最佳答案

这是正常的 href 行为。
只需将此样式添加到您的按钮即可:

user-drag: none; 
user-select: none;
-moz-user-select: none;
-webkit-user-drag: none;
-webkit-user-select: none;
-ms-user-select: none;

关于html - 单击并拖动按钮的副本,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59329031/

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