当您将鼠标悬停在输入类型按钮上时,默认的十六进制/rgb/颜色是什么?
<input type="button" value="hover here"/>
或者 <button>"hover here"</button>
当您悬停该按钮时,十六进制颜色是什么?
最佳答案
当您将鼠标悬停在 <input type="button/>"
上时或 <button>
颜色相同,注意选择器是:
input[type="button"],
input[type="submit"],
input[type="reset"],
button {
...
}
另一方面,悬停时的颜色取决于浏览器,因为每个浏览器都有自己的样式,例如
Chrome :buttonface
rgb(221, 221, 221)
= #dddddd
即:rgb(166, 244, 255)
= #a6f4ff
FF: -moz-buttonhoverface
(在悬停中定义渐变)
及以上甚至取决于所使用的主题。
关于css - 将鼠标悬停在输入类型按钮上时,默认的十六进制/rgb/颜色是什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31397884/