html中點擊跳到指定的 div

效果如下圖所示:(點擊技術介紹,跳到技術介紹模塊)

運用邏輯a標籤,href="#divid"

代碼如下: 

 <a href="#produce" class="aC"> 技術介紹</a>
 <a href="#gread" class="aC"> 技術優勢</a>


<div  id="produce">
   技術介紹div
</div>


<div  id="gread">
  技術優勢div
</div>

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章