<!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>
a {
text-decoration: none;
width: 120px;
height: 58px;
background-color: pink;
display: inline-block;
text-align: center;
line-height: 50px;
color: #fff;
}
/* 每个a的背景图不同, 单独找到每个a, 设置不同的背景图片 */
.one {
background-image: url(./images/bg1.png);
}
.two {
background-image: url(./images/bg2.png);
}
.three {
background-image: url(./images/bg3.png);
}
.four {
background-image: url(./images/bg4.png);
}
.one:hover {
background-image: url(./images/bg5.png);
}
.two:hover {
background-image: url(./images/bg6.png);
}
.three:hover {
background-image: url(./images/bg7.png);
}
.four:hover {
background-image: url(./images/bg8.png);
}
</style>
</head>
<body>
<a href="#" class="one">五彩导航</a>
<a href="#" class="two">五彩导航</a>
<a href="#" class="three">五彩导航</a>
<a href="#" class="four">五彩导航</a>
</body>
</html>
html+css实战86-综合案例2
原创
©著作权归作者所有:来自51CTO博客作者前端导师歌谣的原创作品,请联系作者获取转载授权,否则将追究法律责任
运行结果
提问和评论都可以,用心的回复会被更多人看到
评论
发布评论
相关文章
-
html+css实战21-综合案例
基本骨架
html css 前端开发 -
html+css实战64-综合案例3-图片完成
html
css html css3 f5 微信公众号 -
html+css实战22-综合案例-跳转路由
基本骨架 今日搜索
html css webview 搜索 -
html+css实战122-综合案例-小米产品-li
Document ...
html 自动换行 -
AndroidUtility软件
Android运行过程中有多种情况会触发垃圾回收(GC,garbage collection),以android 5.0为例,可以发现,在应用运行过程中最常见的触发GC的方式如下图所示: 此图是通过android studio截取的android应用运行过程中某应用内存占用情况的动态变化图,蓝色部分是应用占用的内存,灰色部分是当前空闲的内存。可以看到,在白色圈内的那点,当应用空闲的内存到达某阈
AndroidUtility软件 Garbage Collection Java Java 垃圾回收 android