10. 參考資料

web4.html:

<ul class="list">
  <li>
    <button type="button" class="del">刪除</button>
    這是文字1
  </li>
  <li>
    <button type="button" class="del">刪除</button>
    這是文字2
  </li>
</ul>

web5.html:

<div class="parent_block">

  <div class="left_block">
    <ul class="list">
      <li><a href="#" id="link1" class="link -on">一</a></li>
      <li><a href="#" id="link2" class="link">二</a></li>
      <li><a href="#" id="link3" class="link">三</a></li>
    </ul>
  </div>

  <div class="right_block" id="scroll_block">
    <div class="each_block" data-id="link1">內容一</div>
    <div class="each_block" data-id="link2">內容二</div>
    <div class="each_block" data-id="link3">內容三</div>
  </div>

</div>

元素寬高:

Last updated