導航:首頁 > 萬維百科 > 網頁設計單選按鈕

網頁設計單選按鈕

發布時間:2020-10-17 10:11:04

1、Dreamweaver網頁製作 怎樣才能點擊單選按鈕後跳轉到另一個網頁?

需要用到動態語言,php或者asp。單純html只能實現單純的跳轉。

2、網頁製作中單選按鈕的初始值怎麼設定?

你在男的按鈕的屬性上加上checked="checked" 具體給個例子: <form id="form1" name="form1" method="post" action=""> <input name="radiobutton" type="radio" value="radiobutton" checked="checked" /> 男 <input type="radio" name="radiobutton" value="radiobutton" /> 女 </form>

3、在JSP網站製作中怎樣對表單中的單選按鈕進行一個是否選中的判斷驗證?

document.getElementById("你單選按鈕的id").checked
選中為true,否則false

4、如何用DW製作網頁選擇題. 如何用單選按鈕表單提交選項並能判斷正誤?

那是需要資料庫的動態網站,把正確答案錄入資料庫,然後別人做題提交之後跟資料庫裡面的正確答案做對比,得出對錯與分數,或者用js實現的,或者用的類似asp、jsp、或者php之類的語言寫好判斷來實現的。

5、網頁設計單選按鈕問題

①有啥不同?
從頁面上看:"<input type = "radio" name = "sex" value = "man" />男" 會顯示一個單選按鈕和旁邊一個「男」 ;<input type = "radio" name = "sex" /> 只會顯示一個單選按鈕

②加不加value又有什麼區別??

name屬性相同時,只能選中一個單選按鈕,並且把value值傳給另外一個頁面。不加value 則表示傳出去的值為空。

祝你好運!

6、網頁製作中,製作調查問卷時各題的單選按鈕如何不會互相干擾?

<body>
<form id="form1" name="form1" method="post" action="">
<p>
<label>
<input type="radio" name="RadioGroup1" value="單選" />
單選</label>
<br />
<label>
<input type="radio" name="RadioGroup1" value="單選" />
單選</label>
<br />
<label>
<input type="radio" name="RadioGroup1" value="單選" />
單選</label>
<br />
<label>
<input type="radio" name="RadioGroup1" value="單選" />
單選</label>
<br />
</p>
</form>
</body>

這是個單選代碼!
你可以把<name>這個值把名字改下,不要與代碼中的關鍵字相同!並且要在代碼中定義一個名字!<value>這個裡面改成一個值,因為你如果上傳到伺服器上,伺服器就只你上傳的是什麼意思!改成下面大概這個樣子!
<body>
<form id="form1" name="form1" method="post" action="">
<p>
<label>
<input type="radio" name="qcjs" value="001" />
汽車</label>
<br />
<label>
<input type="radio" name="fcjs" value="002" />
房產</label>
<br />
</p>
</form>
</body>

與網頁設計單選按鈕相關的知識