html - 该州的边界不会消失:悬停
问题描述
我有两个按钮,在其上应用了以下 css:
display: flex;
height: 43px;
margin-top: 10px;
}
.reset, .register{
flex: 2;
font-family: snes;
font-size: 40px;
background-color: rgba(0, 0, 0, 0.493);
color: white;
border: none;
border-radius: 30px;
margin: 0;
text-shadow: #FFF 0px 0px 5px, #FFF 0px 0px 15px, #1695CE 0px 0px 20px, #1695CE 0px 0px 30px, #1695CE 0px 0px 40px, #1695CE 0px 0px 50px, #1695CE 0px 0px 75px;
letter-spacing: 2px;
}
button.reset:focus{
border: none;
}
.blank_space{
flex: 1;
}
这是两者的html:
<div class="buttons">
<button class="reset" type="reset">Reset</button>
<div class="blank_space"></div>
<button class="register" type="submit">Register</button>
</div>
*注意:空格只是为了使用flex来划分按钮。
这是重置按钮的焦点状态的结果(也适用于注册按钮)。我不想要额外的边框。我努力了
button.reset:focus{
border: none;
}
它没有用。
解决方案
推荐阅读
- android - WorkManager 现有工作策略 APPEND_OR_REPLACE 未按预期运行
- php - MySQL 使用正常查询返回奇怪的结果
- c - 在 c 中使用括号
- javascript - 将图像放在滑块的项目符号中
- typescript - 类型和值的交错数组
- ios - iOS 自定义键盘扩展蓝牙访问
- python - 在 Jupyter Notebook 仪表板中意外拒绝终端访问我的 Documents 文件夹
- python - Combining add_loss with keras.losses in multioutput models using intermediate outputs
- javascript - 在 JavaScript 中从现在开始对时间数组进行排序
- regex - 正则表达式匹配 $date0$ 或 ''$date0$''