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

边栏推荐
- Resource not found: rgbd_launch 解决方案
- kibana操作es
- Gameframework making games (I)
- IDEA报错 Failed to determine a suitable driver class
- 安防市场进入万亿时代,安防B2B网上商城平台精准对接深化企业发展路径
- Spark parameter adjustment and tuning
- CTS test introduction (how to introduce interface test in interview)
- Number of high-quality number pairs [bit operation characteristics + abstract ability evaluation + grouping fast statistics]
- Structure size
- The concept and operation rules of calculus of variations
猜你喜欢

Idea error failed to determine a suitable driver class

51单片机学习笔记(2)

D2. Chopping Carrots (Hard Version) (每日一题)

06、类神经网络
![应用实践:Paddle分类模型大集成者[PaddleHub、Finetune、prompt]](/img/b6/62a346174bfa63fe352f9ef7596bfc.png)
应用实践:Paddle分类模型大集成者[PaddleHub、Finetune、prompt]

51 single chip microcomputer learning notes (2)

基于PaddleOCR开发uni-app离线身份证识别插件

Deng Qinglin, a technical expert of Alibaba cloud: Best Practices for disaster recovery and remote multi activity across availability zones on cloud

PS制作加载GIF图片教程

006操作符简介
随机推荐
spark参数调整调优
I2C设备驱动程序的层次结构
网络安全应急响应技术实战指南(奇安信)
Bond0 script
Structure size
awk从入门到入土(24)提取指令网卡的ip
【口才】谈判说服技巧及策略
Resource not found: rgbd_ Launch solution
H5页面input输入框弹起数字键盘,需要支持小数点
English语法_不定代词 - other / another
[cartographer_ros] VIII: Official demo parameter configuration and effect
Yes, UDP protocol can also be used to request DNS server
Niuke multi school E G J L
GameFramework制作游戏(二)制作UI界面
河源市区推出消防安全主题奶茶 助推夏季火灾防控
【MySQL必知必会】触发器 | 权限管理
如何让一套代码完美适配各种屏幕?
[nuxt 3] (XI) transmission & module
Gameframework making games (II) making UI interface
How to design a high concurrency system?