mychar.style.width="300px";和mychar.style.width="300";效果好像有區(qū)別哦?但都能通過
2014-12-05
打開網(wǎng)站的示例代碼“status=no”和前面的“,”有空格了,不是說不能有空格嗎?
2014-12-04
function qux(){
var ren = confirm("確定取消設(shè)置嗎?")
if(ren){
otxt.style.color="#000";
otxt.style.backgroundColor="#fff"
otxt.style.width="600px";
otxt.style.height="400px";
}else{
}
}
var ren = confirm("確定取消設(shè)置嗎?")
if(ren){
otxt.style.color="#000";
otxt.style.backgroundColor="#fff"
otxt.style.width="600px";
otxt.style.height="400px";
}else{
}
}
2014-12-04
//定義"取消設(shè)置"的函數(shù)
function resetAll(){
if(confirm("是否取消設(shè)置回復(fù)默認(rèn)?")){
mytxt = document.getElementById("txt");
mytxt.setAttribute('style','');
}else{
return false;
}
}
function resetAll(){
if(confirm("是否取消設(shè)置回復(fù)默認(rèn)?")){
mytxt = document.getElementById("txt");
mytxt.setAttribute('style','');
}else{
return false;
}
}
2014-12-02
//定義"取消設(shè)置"的函數(shù)
function resetAll(){
if(confirm("是否取消設(shè)置回復(fù)默認(rèn)?")){
mytxt.setAttribute('style','');
}else{
return false;
}
}
function resetAll(){
if(confirm("是否取消設(shè)置回復(fù)默認(rèn)?")){
mytxt.setAttribute('style','');
}else{
return false;
}
}
2014-12-02
var mychar= con ;
document.getElementById("con").innerHTML; //輸出獲取的P標(biāo)簽。 // pass!
document.getElementById("con").innerHTML; //輸出獲取的P標(biāo)簽。 // pass!
2014-12-02