亚洲国产日韩欧美一区二区三区,精品亚洲国产成人av在线,国产99视频精品免视看7,99国产精品久久久久久久成人热,欧美日韩亚洲国产综合乱

下滑線跟隨導(dǎo)航

Original 2019-05-27 22:55:52 277
abstract:<!DOCTYPE html><html lang="en"><head>    <meta charset="UTF-8">    <title>下滑先跟隨導(dǎo)航</title>    <script type="

<!DOCTYPE html>
<html lang="en">
<head>
   <meta charset="UTF-8">
   <title>下滑先跟隨導(dǎo)航</title>
   <script type="text/css" src="../jquery-3.4.1.min.js"></script>
   <style type="text/css">
*{margin: 0px;padding: 0px}
ul{list-style-type: none;z-index: 20;position: relative;font-size: 15px}
li{float: left;cursor: pointer;width: 100px;height: 30px;text-align: center;line-height: 30px;color: #ffffff;font-weight: bold}
       .menu{width: 700px;position: relative;margin: 20px auto;height: 32px;box-shadow: 0 2px 20px orangered;background: pink;border-radius: 3px}
</style>
   <script type="text/javascript">
$(function () {
$('li').hover(
function () {
$x=parseInt($(this).attr('name'))*100;
$('.block').stop().animate({left:$x+'px'},300)
           },
function () {
$('.block').stop().animate({left:'0px'},300)
               }
           )
       })
</script>
</head>
<body>
  <div class="menu">
      <ul>
          <li name="0">首頁</li>
          <li name="1">視頻教程</li>
          <li name="2">社區(qū)問答</li>
          <li name="3">技術(shù)文章</li>
          <li name="4">編程詞典</li>
          <li name="5">資源下載</li>
          <li name="6">菜鳥隨堂</li>
      </ul>
      <div class="block" style="z-index: 10;width: 100px;height: 2px;background: orangered;position: absolute;top: 30px;"></div>
  </div>
</body>
</html>

Correcting teacher:天蓬老師Correction time:2019-05-28 16:58:02
Teacher's summary:下劃線跟隨著鼠標(biāo)移動, 是通過一些事件來實(shí)現(xiàn), 這樣的效率 , 還是很多方法來實(shí)現(xiàn)可以試試看

Release Notes

Popular Entries