DIV CSS 佈局教程網

 DIV+CSS佈局教程網 >> 網頁腳本 >> XML學習教程 >> XML詳解 >> WML教程12:控件組(Fieldset)和復雜示例
WML教程12:控件組(Fieldset)和復雜示例
編輯:XML詳解     
FIEldset 提供了一種控件分組的功能,相對於Optgroup它的潛在價值更強了,但是需要客戶端設備的支持才能獲得顯示效果。

  相關屬性:

  title 標題

  綜合示例:

<?XML version="1.0"?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.XML">
<wml>

<template>
  <do type="options" label="Back">
    <prev/>
  </do>
</template>

<card id="fIElds">
<p> FIEld Type:
 <select title="FIEld type">
  <option onpick="#nested">Nested</option>
  <option onpick="#passWord">PassWord</option>
 </select>
</p>
</card>

<card id="nested">
<onevent type="onenterbackward">
  <prev/>
</onevent>
<do type="accept" label="Done">
  <go href="#done"/>
</do>
<p>
<fIEldset title="name">
  First Name:
    <input title="First" name="fname"/>
  Last Name:
    <input title="Last" name="lname"/>
</fIEldset>
Gender:
<select title="Gender" name="gender">
<option value="male">Male</option>
  <option value="female">Female</option>
</select>
</p>
</card>

<card id="done">
<p> $fname $lname is a $gender. </p>
</card>

<card id="passWord">
<onevent type="onenterbackward">
  <prev/>
</onevent>
<do type="accept" label="Done">
  <go href="#passwd_done"/>
</do>
<p> Input a passWord:<br/>
Min 3 chars.
<input title="Password" name="passwd" type="passWord" format="*m"/>
</p>
</card>

<card id="passwd_done">
  <p> PassWord was $passwd. </p>
</card>
</wml>


XML學習教程| jQuery入門知識| AJAX入門| Dreamweaver教程| Fireworks入門知識| SEO技巧| SEO優化集錦|
Copyright © DIV+CSS佈局教程網 All Rights Reserved