Javascript實(shí)現(xiàn)簡易導(dǎo)航欄
本文實(shí)例為大家分享了Javascript實(shí)現(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='http://m.propowerdrill.cn/bcjs/1.jpg' 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í)有所幫助,也希望大家多多支持好吧啦網(wǎng)。
相關(guān)文章:
1. 使用ajax跨域調(diào)用springboot框架的api傳輸文件2. ASP.NET MVC把數(shù)據(jù)庫中枚舉項(xiàng)的數(shù)字轉(zhuǎn)換成文字3. python新手學(xué)習(xí)可變和不可變對象4. JS中map和parseInt的用法詳解5. 通過python調(diào)用adb命令對App進(jìn)行性能測試方式6. Python matplotlib畫圖時圖例說明(legend)放到圖像外側(cè)詳解7. idea右鍵沒有java class選項(xiàng)問題解決方案8. vue中關(guān)于checkbox使用的問題9. Python查詢oracle數(shù)據(jù)庫速度慢的解決方案10. python 實(shí)現(xiàn)mysql自動增刪分區(qū)的方法
