This article shares the specific code of Javascript to implement a simple navigation bar for your reference. The specific content is as follows <!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>Navigation</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">Homepage</button> <button type="button" id="b1">Website News</button> <button type="button" id="b1">Website Fun</button> <button type="button" id="b1">Website Forum</button> <button type="button" id="b1">Website Introduction</button> <button type="button" id="b2">Recruit talents</button> </div> </div> </div> </body> </html> Effect picture: The above is the full content of this article. I hope it will be helpful for everyone’s study. I also hope that everyone will support 123WORDPRESS.COM. You may also be interested in:
|
<<: Mysql Workbench query mysql database method
>>: KTL tool realizes the method of synchronizing data from MySQL to MySQL
On Unix-like systems, you may know when a command...
This article example shares the specific code of ...
view: Views in MySQL have many similarities with ...
Table of contents Compare the empty string '&...
1. Create table statement: CREATE TABLE `employee...
Today I will introduce how to enable the Linux su...
Preface During the development process, you will ...
#include <asm/io.h> #define ioremap(cookie,...
1. How MySQL uses indexes Indexes are used to qui...
Table of contents Overview Hash Properties Host p...
The telnet in the Alpine image has been moved to ...
Table of contents 1. Array.at() 2. Array.copyWith...
As a useful terminal emulator, Xshell is often us...
Environment: init_worker_by_lua, set_by_lua, rewr...
Preface This article records how I use docker-com...