已采納回答 / 糖樂
這次修改樣式的時候是通過object.style.property來修改的,而不是使用class加樣式,所以?x.className="select"; ?是沒用的,況且select是id而不是類??梢試L試?x.style.cssText=""來清空樣式; ?至于你的寬高我用你的代碼運行下是可以的。
2015-03-19
最新回答 / 問到底
//能有我的標準?<!DOCTYPE html><html>?<head>? <title> new document </title> ?? <meta http-equiv="Content-Type" content="text/html; charset=gbk"/> ??? <script type="text/javascript"> ?? ? // 新窗口打開時彈出確認框,是否打開? ? function o...
2015-03-17
最新回答 / _Exception
function openWindow(){????var window= ?confirm("你確定打開網頁?"); ? ?????if(window==true){ ? ?????var url = prompt("請輸入網址","http://www.xianlaiwan.cn/"); ???????????????? ? ? ?????????? ??window.open('http://www.xianlaiwan.cn','_blank','width=400px,height=500px,menubar=...
2015-03-17