- android - 多次调用 OnPrimaryClipChangedListener
- android - 无法更新 RecyclerView 中的 TextView 字段
- android.database.CursorIndexOutOfBoundsException : Index 0 requested, 光标大小为 0
- android - 使用 AppCompat 时,我们是否需要明确指定其 UI 组件(Spinner、EditText)颜色
我正在写这行代码;
<INPUT TYPE="BUTTON" class="configurationButton" id="btnAddButton" style="width:60px;" name="btnAddButton" value="Add" disabled>
加载时,按钮变为禁用状态,但其颜色仍为黑色。因为 .configurationButton 中有默认的黑色,,,, 请告诉我上面标签示例中禁用按钮的颜色应该是什么?
最佳答案
检查 JS fiddle
.configurationButton
{
background:black;
color:white;
cursor:pointer;
}
.configurationButton:disabled
{
background:white;
color:gray;
cursor:default;
opacity:0.2;
关于html - 禁用后html中Button的颜色应该是什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18956563/
我遇到过这个 html: 上面的html和这个有什么区别: 最佳答案 来自MDN page on the tag : 对于 type 的属性标签,可能的值是: 提交:按钮将表单数据提交给服务器
Button button= (Button) findViewbyID(R.id.button); 和 Button button = new Button(this); 有什么区别? 最佳答案 有
我是一名优秀的程序员,十分优秀!