css背景图片把文字内容盖住
<!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;
display: inline-block;
color: #fff;
line-height: 60px;
text-align: center;
}
#a {
background-color: red;
width: 120px;
height: 60px;
background-image: url(../图片库/一个气泡框2.jpg);
background-repeat: no-repeat;
}
#b {
background-color: skyblue;
width: 120px;
height: 60px;
}
#c {
background-color: purple;
width: 120px;
height: 60px;
}
#d {
background-color: pink;
width: 120px;
height: 60px;
}
</style>
</head>
<body>
<div>
<a href="#" id="a">五彩导航</a><a href="#" id="b">五彩导航</a><a href="#" id="c">五彩导航</a><a href="#" id="d">五彩导航</a>
</div>
</body>
</html>
查询过百度和社区没有看到类似的问题
让内容显示在背景图片上
你这个是 a标签的字体颜色和背景图片颜色一样都是白色 不是覆盖了 你改一下字体颜色就好了 color