為什么顯示沒用?
var he = document.getElementById("con");
? var tt= document.getElementById("txt");
//定義"改變顏色"的函數
? function changeColor(){
? ?tt.style.color="red";
? ?tt.style.backgroundColor="pink";
? } ?
//定義"改變寬高"的函數
? function changeWidthAndHeight(){
? ? tt.style.width ="300px";
? ? tt.style.height ="500px";
? }
//定義"隱藏內容"的函數
? ?function hideText(){
? ? tt.style.display="none";
? ?}
//定義"顯示內容"的函數
? ?function showtext(){
? ? tt.style.display="block";
? ?}
//定義"取消設置"的函數
? ?function offSet(){
? ? var a = confirm("是否重置");
? ? if(a==true)
? ? {tt.removeAttribute("style");}
? ? else{}
? ?}
點擊顯示按鈕沒有回復顯示?
2016-06-15
可以顯示的
2016-06-15
有用啊,你點一下右上角的 全屏,再試試