欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

Javascript實現(xiàn)簡易導(dǎo)航欄

 更新時間:2021年06月16日 14:30:11   作者:6+3  
這篇文章主要為大家詳細介紹了Javascript實現(xiàn)簡易導(dǎo)航欄,文中示例代碼介紹的非常詳細,具有一定的參考價值,感興趣的小伙伴們可以參考一下

本文實例為大家分享了Javascript實現(xiàn)簡易導(dǎo)航欄的具體代碼,供大家參考,具體內(nèi)容如下

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>導(dǎo)航</title>
</head>
<style>
        button{
              width:80px;
              height:25px;
              border:none;
        }
          #b1{
             background-image: url('1.png');
             margin-right:0px;
           
          }
          #b2{
             background-image: url('1.png');
             width:380px;
             height:25px;
             text-align: left;

          }
         #b1:hover{
            background-image: url('2.png');   
         }
         #b2:hover{
            background-image: url('2.png');   
         }
        
</style>

<body>
    <div style="width: 800px;margin:0px auto">
        
    
    <div>
            <img src="1.jpg" width="100%" height="150px%">
    </div>
    <div>
            <div style="font-size: 1px">
                    <button type="button" id="b1">網(wǎng)站首頁</button>
                    <button type="button" id="b1">網(wǎng)站新聞</button>
                    <button type="button" id="b1">網(wǎng)站趣聞</button>
                    <button type="button" id="b1">網(wǎng)站論壇</button>
                    <button type="button" id="b1">網(wǎng)站介紹</button> 
                    <button type="button" id="b2">招納賢士</button>
                    
            </div>
              
             
    </div>
     </div>
</body>
</html>

效果圖:

以上就是本文的全部內(nèi)容,希望對大家的學(xué)習(xí)有所幫助,也希望大家多多支持腳本之家。

相關(guān)文章

最新評論