当前位置:网站首页>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 :

边栏推荐
- runc hang 导致 Kubernetes 节点 NotReady
- 179. Maximum number - sort
- Can financial products be redeemed in advance?
- R语言用logistic逻辑回归和AFRIMA、ARIMA时间序列模型预测世界人口
- 微信小程序:全网独家小程序版本独立微信社群人脉
- How to build a technical team that will bring down the company?
- Luo Gu Pardon prisoners of war
- 如何搭建一支搞垮公司的技术团队?
- JS implementation determines whether the point is within the polygon range
- Advanced conditional statements of common SQL operations
猜你喜欢

Binary tree traversal - middle order traversal (golang)

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

He was laid off.. 39 year old Ali P9, saved 150million

Matrixone 0.2.0 is released, and the fastest SQL computing engine is coming

DOM basic syntax

Win:使用 Shadow Mode 查看远程用户的桌面会话

"2022" is a must know web security interview question for job hopping

The application and Optimization Practice of redis in vivo push platform is transferred to the end of metadata by

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

What sparks can applet container technology collide with IOT
随机推荐
Main window in QT application
线上故障突突突?如何紧急诊断、排查与恢复
JVM - when multiple threads initialize the same class, only one thread is allowed to initialize
Grpc message sending of vertx
Runc hang causes the kubernetes node notready
Huawei machine test question: longest continuous subsequence
DOM basic syntax
[swagger]-swagger learning
How to build a technical team that will bring down the company?
Phpstrom setting function annotation description
Blue Bridge Cup Square filling (DFS backtracking)
The perfect car for successful people: BMW X7! Superior performance, excellent comfort and safety
PowerShell: use PowerShell behind the proxy server
微信小程序;胡言乱语生成器
Subject 3 how to turn on the high beam diagram? Is the high beam of section 3 up or down
Restful fast request 2022.2.1 release, support curl import
The steering wheel can be turned for one and a half turns. Is there any difference between it and two turns
微信小程序:全网独家小程序版本独立微信社群人脉
85.4% mIOU! NVIDIA: using multi-scale attention for semantic segmentation, the code is open source!
PHP 基础篇 - PHP 中 DES 加解密详解