当前位置:网站首页>41 图片背景综合-五彩导航图
41 图片背景综合-五彩导航图
2022-07-25 14:40:00 【hello_sunny123】

代码:
<!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>案例</title>
<style> .nav a {
display: inline-block; width: 120px; height: 58px; background-color: pink; /* 本质是让h1盒子里边的文字水平居中对齐 */ text-align: center; /* 本质是让h1盒子里边的文字垂直居中对齐 */ line-height: 48px; /* 不要下划线 */ text-decoration: none; color: #fff; } .nav .bg1 {
background: url(images/bg1.png) no-repeat; } .nav .bg1:hover {
background-image: url(images/bg11.png); } .nav .bg2 {
background: url(images/bg2.png) no-repeat; } .nav .bg2:hover {
background-image: url(images/bg22.png); } .nav .bg3 {
background: url(images/bg3.jpg) no-repeat; } .nav .bg3:hover {
background-image: url(images/bg1.png); } .nav .bg4 {
background: url(images/bg4.png) no-repeat; } .nav .bg4:hover {
background-image: url(images/bg2.png); } .nav .bg5 {
background: url(images/bg5.png) no-repeat; } .nav .bg5:hover {
background-image: url(images/bg4.png); } </style>
</head>
<body>
<div class="nav">
<!-- shift+Alt按住别松,然后按# -->
<a href="#" class="bg1">五彩导航</a>
<a href="#" class="bg2">五彩导航</a>
<a href="#" class="bg3">五彩导航</a>
<a href="#" class="bg4">五彩导航</a>
<a href="#" class="bg5">五彩导航</a>
</div>
</div>
</body>
</html>
结果

边栏推荐
- 直播课堂系统05-后台管理系统
- 【口才】谈判说服技巧及策略
- 006 operator introduction
- 关于ROS2安装connext RMW的进度条卡在13%问题的解决办法
- Resource not found: rgbd_launch 解决方案
- awk从入门到入土(23)awk内置变量ARGC、ARGC--命令行参数传递
- QObject source code analysis -d pointer and Q pointer
- Number of high-quality number pairs [bit operation characteristics + abstract ability evaluation + grouping fast statistics]
- The security market has entered a trillion era, and the security B2B online mall platform has been accurately connected to deepen the enterprise development path
- Jmeter的随机数函数怎么用
猜你喜欢

The security market has entered a trillion era, and the security B2B online mall platform has been accurately connected to deepen the enterprise development path

Go语言创始人从Google离职

Under the epidemic, the biomedical industry may usher in breakthrough development

51 single chip microcomputer learning notes (1)

Products on Apple's official website can save 600 yuan by buying iPhone 13 Pro max at a discount

English语法_不定代词 - other / another

为什么中建、中铁都需要这本证书?究竟是什么原因?

直播课堂系统05-后台管理系统

Resource not found: rgbd_launch 解决方案

Realsense-Ros安装配置介绍与问题解决
随机推荐
Thymeleaf setting disabled
Resource not found: rgbd_launch 解决方案
Why do China Construction and China Railway need this certificate? What is the reason?
sqli-labs Basic Challenges Less1-10
[nuxt 3] (XI) transmission & module
The input input box of H5 page pops up the numeric keypad, which needs to support decimal points
Gateway reports an error service_ UNAVAILABLE
Realsense-Ros安装配置介绍与问题解决
Initial flask and simple application
D2. picking carrots (hard version) (one question per day)
阿里云安装MYSQL5.7
Awk from getting started to digging in (20) awk parsing command line parameters
I hope some suggestions on SQL optimization can help you who are tortured by SQL like me
The main function of component procurement system, digital procurement helps component enterprises develop rapidly
Paddlenlp之UIE关系抽取模型【高管关系抽取为例】
Under the epidemic, the biomedical industry may usher in breakthrough development
C language and SQL Server database technology
MySQL 45讲 | 06 全局锁和表锁 :给表加个字段怎么有这么多阻碍?
06、类神经网络
[eloquence] negotiation persuasion skills and Strategies