当前位置:网站首页>在按钮禁用时消除hover效果
在按钮禁用时消除hover效果
2022-06-29 01:57:00 【wam923259736】
在正常情况下, 鼠标悬停到按钮上会触发hover效果, 背景颜色和文字颜色都发生变化, 当我们给按钮添加禁用效果时需要消除hover效果
解决方案: 使用:not(.is-disabled) 来给没有被禁用(样式类名中不包含is-disabled)的按钮添加hover效果
.one-button-primary {
background: #409eff;
color: #fff;
border-color: #409eff;
&:hover {
&:not(.is-disabled) {
color: #fff;
background: #66b1ff;
}
}
}
.one-button.is-disabled {
opacity: 0.6;
cursor: not-allowed;
}
边栏推荐
- How to become a senior digital IC Design Engineer (4-3)
- The metadata request parsing principle of OData XML format applied by SAP ui5 is based on domparser
- How to encrypt anti copy program
- Stm32l4xx serial port log configuration analysis
- Finally got the byte offer. The 25-year-old inexperienced experience in software testing is written to you who are still confused
- Use kubernetes resource lock to complete your own ha application
- ASP. Net based on LAN
- Understand flex layout in an article
- In simple terms, server intrusion prevention
- Exclusive analysis | real situation of software test about resume and interview
猜你喜欢
![[MySQL practice of high concurrency, high performance and high availability of massive data -9] - transaction concurrency control solutions lbcc and mvcc](/img/62/77c2274db4f92ad1d88901e149251c.jpg)
[MySQL practice of high concurrency, high performance and high availability of massive data -9] - transaction concurrency control solutions lbcc and mvcc

Research on VB multi-layer firewall technology - state detection

Typescript (7) generic
Scala 基础 (三):运算符和流程控制

Crawler exercise (IV) -- IP address problem

Test a CSDN free download software

How to become a senior digital IC Design Engineer (4-3)

TiFlash 面向编译器的自动向量化加速

Advanced installer architect authoring tool

Tiflash compiler oriented automatic vectorization acceleration
随机推荐
微信运动自动点赞
【Redis】Set类型
HBuilder左侧工具栏不见了
Testing until you're 35? The 35 + test will lead to unemployment?
Fibonacci sequence
Typescript (6) function
Necessary technologies for chip manufacturers (1) Introduction
Analysis of parsing principle of OData metadata request response in SAP ui5 application
想请教一下,我在中山,到哪里开户比较好?在线开户是安全么?
[从零开始学习FPGA编程-50]:视野篇 - 芯片是如何被制造出来的?芯片制造的十三大步骤。
如何成为一名高级数字 IC 设计工程师(4-3)脚本篇:C 语言实现的文件读写操作
Scala Foundation (3): Operators and Process Control
SAP ui5 beginner tutorial 22 - development and use of filter
直播预告|SQL也能玩转工业级机器学习?MLOps meetup V3带你一探究竟!
Scala 基礎 (三):運算符和流程控制
为什么要在网站上安装SSL证书?
What is stock online account opening? Is it safe to open an account online?
如何成为一名高级数字 IC 设计工程师(1-1)Verilog 编码语法篇:引言
A full screen gesture adaptation scheme
如何成为一名高级数字 IC 设计工程师(6-5)数字 IC 验证篇:覆盖率收集