rutoxpath/deepseek_html_20250425_ef9a...

76 lines
2.3 KiB
HTML

<!DOCTYPE html>
<html lang="zh">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>编辑保护按钮</title>
<style>
/* Ant Design 按钮基础样式 */
.ant-btn {
line-height: 1.499;
position: relative;
display: inline-block;
font-weight: 400;
white-space: nowrap;
text-align: center;
background-image: none;
border: 1px solid transparent;
box-shadow: 0 2px 0 rgba(0, 0, 0, 0.015);
cursor: pointer;
transition: all .3s cubic-bezier(.645, .045, .355, 1);
user-select: none;
touch-action: manipulation;
height: 32px;
padding: 0 15px;
font-size: 14px;
border-radius: 4px;
color: rgba(0, 0, 0, 0.65);
background-color: #fff;
border-color: #d9d9d9;
}
.ant-btn-primary {
color: #fff;
background-color: #1890ff;
border-color: #1890ff;
text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.12);
box-shadow: 0 2px 0 rgba(0, 0, 0, 0.045);
}
.ant-btn-primary:hover {
background-color: #40a9ff;
border-color: #40a9ff;
}
.ant-btn-primary:active {
background-color: #096dd9;
border-color: #096dd9;
}
.ant-btn[disabled] {
color: rgba(0, 0, 0, 0.25);
background-color: #f5f5f5;
border-color: #d9d9d9;
text-shadow: none;
box-shadow: none;
cursor: not-allowed;
}
</style>
</head>
<body>
<button style="border-radius: 2px 0px 0px 2px;" type="button" class="ant-btn ant-btn-primary"
id="cdp_diskInfo_editConfigProtect_button" robotid="cdp_diskInfo_editCfgProtect">
编辑保护
</button>
<script>
document.addEventListener('DOMContentLoaded', function() {
const button = document.getElementById('cdp_diskInfo_editConfigProtect_button');
button.addEventListener('click', function() {
alert('已经点击');
});
});
</script>
</body>
</html>