当前位置:网站首页>A label colorful navigation bar
A label colorful navigation bar
2022-07-05 01:49:00 【dengfengling999】
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<style>
.nav a {
display: inline-block;
width: 120px;
height: 58px;
background-color: green;
text-align: center;
/* Text horizontal center */
line-height: 58px;
/* Want to center text vertically , Set the row height equal to the box Height */
color: #fff;
text-decoration: none;
}
.nav .bg1:hover {
background-color: hotpink;
color: orange;
text-decoration: underline;
}
.nav .bg2:hover {
background-color: red;
}
.nav .bg3:hover {
background-color: orange;
}
.nav .bg4:hover {
background-color: palegoldenrod;
}
.nav .bg5:hover {
background-color: palegreen;
}
</style>
</head>
<body>
<div class="nav">
<a href="#" class="bg1"> Colorful navigation </a>
<a href="#" class="bg2"> Colorful navigation </a>
<a href="#" class="bg3"> Colorful navigation </a>
<a href="#" class="bg4"> Colorful navigation </a>
<a href="#" class="bg5"> Colorful navigation </a>
</div>
</body>
</html>result :

边栏推荐
- STM32 series - serial port UART software pin internal pull-up or external resistance pull-up - cause problem search
- WCF: expose unset read-only DataMember property- WCF: Exposing readonly DataMember properties without set?
- Do you know the eight signs of a team becoming agile?
- PHP wechat official account development
- JS implementation determines whether the point is within the polygon range
- Vulnstack3
- [swagger]-swagger learning
- Learn tla+ (XII) -- functions through examples
- The MySQL team development specifications used by various factories are too detailed. It is recommended to collect them!
- Outlook:总是提示输入用户密码
猜你喜欢

Remote control service

Interesting practice of robot programming 16 synchronous positioning and map building (SLAM)

微信小程序:全新独立后台月老办事处一元交友盲盒

【LeetCode】88. Merge two ordered arrays

Win: use PowerShell to check the strength of wireless signal

Interesting practice of robot programming 14 robot 3D simulation (gazebo+turtlebot3)

PHP wechat official account development

Grub 2.12 will be released this year to continue to improve boot security

如何做一个炫酷的墨水屏电子钟?

PowerShell: use PowerShell behind the proxy server
随机推荐
【CTF】AWDP总结(Web)
142. Circular linked list II
流批一體在京東的探索與實踐
Talk about the things that must be paid attention to when interviewing programmers
Phpstrom setting function annotation description
The perfect car for successful people: BMW X7! Superior performance, excellent comfort and safety
Wechat applet: the latest WordPress black gold wallpaper wechat applet two open repair version source code download support traffic main revenue
When the industrial Internet era is truly developed and improved, it will witness the birth of giants in every scene
Win:使用 PowerShell 检查无线信号的强弱
Introduction to redis (1)
如何做一个炫酷的墨水屏电子钟?
Unified blog writing environment
JS implementation determines whether the point is within the polygon range
One plus six brushes into Kali nethunter
JVM's responsibility - load and run bytecode
微信小程序:全网独家小程序版本独立微信社群人脉
Binary tree traversal - middle order traversal (golang)
Nebula importer data import practice
微信小程序:最新wordpress黑金壁纸微信小程序 二开修复版源码下载支持流量主收益
增量备份 ?db full