久久久久久久视色,久久电影免费精品,中文亚洲欧美乱码在线观看,在线免费播放AV片

<center id="vfaef"><input id="vfaef"><table id="vfaef"></table></input></center>

    <p id="vfaef"><kbd id="vfaef"></kbd></p>

    
    
    <pre id="vfaef"><u id="vfaef"></u></pre>

      <thead id="vfaef"><input id="vfaef"></input></thead>

    1. 站長(zhǎng)資訊網(wǎng)
      最全最豐富的資訊網(wǎng)站

      哪些html元素有for屬性

      有for屬性的html元素:1、label元素;for與label元素一起使用時(shí),for屬性指定標(biāo)簽綁定到哪個(gè)表單元素。2、output元素;for與output元素一起使用時(shí),for屬性指定計(jì)算結(jié)果與計(jì)算中使用的元素之間的關(guān)系。

      哪些html元素有for屬性

      本教程操作環(huán)境:windows7系統(tǒng)、HTML5版、Dell G3電腦。

      for屬性適用的html元素

      元素名 說明
      <label> for與<label>元素一起使用時(shí),for屬性指定標(biāo)簽綁定到哪個(gè)表單元素。
      <output> for與<output>元素一起使用時(shí),for屬性指定計(jì)算結(jié)果與計(jì)算中使用的元素之間的關(guān)系。

      <label>標(biāo)簽for屬性

      for屬性指定標(biāo)簽綁定到哪個(gè)表單元素。

      語法

      <label for="element_id">

      element_id:label 要綁定的元素的 id。

      實(shí)例

      <form action="/jc_script/action.php">   <label for="php">PHP</label>   <input type="radio" name="lang" id="php" value="php"><br>   <label for="java">Java</label>   <input type="radio" name="lang" id="java" value="java"><br>   <label for="python">Python</label>   <input type="radio" name="lang" id="python" value="python"><br><br>   <input type="submit" value="提交"> </form>

      <output>標(biāo)簽for屬性

      for屬性指定計(jì)算結(jié)果與計(jì)算中使用的元素之間的關(guān)系。

      語法

      <output for="element_id">

      實(shí)例

      <form oninput="x.value=parseInt(a.value)+parseInt(b.value)">0 <input type="range" id="a" value="50">100 +<input type="number" id="b" value="50"> =<output name="x" for="a b"></output> </form>

      推薦教程:《html視頻教程》

      贊(0)
      分享到: 更多 (0)
      ?
      網(wǎng)站地圖   滬ICP備18035694號(hào)-2    滬公網(wǎng)安備31011702889846號(hào)