当您将鼠标悬停在输入类型按钮上时,默认的十六进制/ rgb /颜色是什么?

时间:2015-07-14 04:50:10

标签: css colors hex

当您将鼠标悬停在输入类型按钮上时,默认的十六进制/ rgb /颜色是什么? <input type="button" value="hover here"/><button>"hover here"</button> 当你悬停那个按钮时,什么是十六进制颜色?

1 个答案:

答案 0 :(得分:1)

当您悬停<input type="button/>"<button>时,颜色与选择器的颜色相同:

input[type="button"],
input[type="submit"],
input[type="reset"],
button {
    ...
}

另一方面,悬停时的颜色取决于浏览器,因为每个浏览器都有自己的样式,例如

Chrome:buttonface rgb(221, 221, 221) = #dddddd

IE:rgb(166, 244, 255) = #a6f4ff

FF:-moz-buttonhoverface(在悬停中定义渐变)

以上甚至取决于所使用的主题。

相关问题