其他都好好的,最后两个是不行的为什么?
<input type="button" value="改变颜色" OnClick="color()">
<input type="button" value="改变宽高" OnClick="WH()">
<input type="button" value="隐藏内容" OnClick="disshow()">
<input type="button" value="显示内容" OnClick="show()">
<input type="button" value="取消设置" OnClick="NO()">
</form>
<script type="text/javascript">
function color(){
var mychar = document.getElementById("txt");
mychar.style.color="red";
mychar.style.backgroundColor="#ccc";
}
function WH(){
var mychar=document.getElementById("txt");
mychar.style.width="250px";
mychar.style.height="250px";
}
function disshow(){
var mychar=document.getElementById("txt");
mychar.style.display="none";
}
function show(){
var mychar=document.getElementById("txt");
mychar.style.daiplay="block";
}
function NO(){
var mychar=document.getElementById("txt");
mychar.style.color="black";
mychar.style.bakcgroundColor="white";
mychar.style.width="600px";
mychar.style.height="400px";
}