我有以下按钮:
<button id="=" style=width:150px;height:150px;font-size:100px; onclick="equalFunction()" disabled="true">=</button>
但是在 disabled="true"
中,我的 IDE 将 "true"
值识别为“错误的属性值”,有人知道如何解决这个问题吗?代码仍然有效,只是看到它被突出显示很烦人。
最佳答案
您不需要将其设置为 true。做这样的事情:
<button id="=" style=width:150px;height:150px;font-size:100px; onclick="equalFunction()" disabled>=</button>
关于html - 为什么 "true" bool 值是 "wrong attribute value"?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51679474/