feat: 新增文本框删除按钮功能
This commit is contained in:
@@ -56,6 +56,29 @@ html, body {
|
||||
background: #3a7bc8;
|
||||
}
|
||||
|
||||
/* 文本输入框删除按钮 */
|
||||
.text-input .text-delete-btn {
|
||||
position: absolute;
|
||||
top: -10px;
|
||||
right: -10px;
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
background: #e74c3c;
|
||||
color: #fff;
|
||||
border: none;
|
||||
border-radius: 50%;
|
||||
font-size: 12px;
|
||||
line-height: 20px;
|
||||
text-align: center;
|
||||
cursor: pointer;
|
||||
display: none;
|
||||
z-index: 10;
|
||||
}
|
||||
|
||||
.text-input.selected:not(.editing) .text-delete-btn {
|
||||
display: block;
|
||||
}
|
||||
|
||||
/* 文本编辑器工具栏 */
|
||||
.text-editor-toolbar {
|
||||
display: flex;
|
||||
|
||||
Reference in New Issue
Block a user