当前位置:网站首页>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 :
边栏推荐
- Phpstrom setting function annotation description
- PHP 约瑟夫环问题
- Application and Optimization Practice of redis in vivo push platform
- Win:将一般用户添加到 Local Admins 组中
- Learn tla+ (XII) -- functions through examples
- es使用collapseBuilder去重和只返回某个字段
- Valentine's Day flirting with girls to force a small way, one can learn
- JS implementation determines whether the point is within the polygon range
- Huawei machine test question: longest continuous subsequence
- [Digital IC hand tearing code] Verilog edge detection circuit (rising edge, falling edge, double edge) | topic | principle | design | simulation
猜你喜欢
微信小程序:全网独家小程序版本独立微信社群人脉
Li Kou Jianzhi offer -- binary tree chapter
微信小程序:微群人脉微信小程序源码下载全新社群系统优化版支持代理会员系统功能超高收益
[swagger]-swagger learning
What sparks can applet container technology collide with IOT
How to build a technical team that will bring down the company?
Incremental backup? db full
微信小程序:独立后台带分销功能月老办事处交友盲盒
The steering wheel can be turned for one and a half turns. Is there any difference between it and two turns
. Net starts again happy 20th birthday
随机推荐
Stored procedure and stored function in Oracle
I use these six code comparison tools
Incremental backup? db full
Go RPC call
线上故障突突突?如何紧急诊断、排查与恢复
Express routing, express middleware, using express write interface
【CTF】AWDP总结(Web)
Change the background color of a pop-up dialog
Include rake tasks in Gems - including rake tasks in gems
Vulnstack3
PowerShell: use PowerShell behind the proxy server
Application and Optimization Practice of redis in vivo push platform
Main window in QT application
JS implementation determines whether the point is within the polygon range
Win:使用 Shadow Mode 查看远程用户的桌面会话
Roads and routes -- dfs+topsort+dijkstra+ mapping
Mysql database | build master-slave instances of mysql-8.0 or above based on docker
MySQL backup and recovery + experiment
Lsblk command - check the disk of the system. I don't often use this command, but it's still very easy to use. Onion duck, like, collect, pay attention, wait for your arrival!
Remote control service