css实现⿏标放在图⽚上显⽰⼀个播放图标
.play_name {
background-image: url(sze.jpg);
width: 220px;
height: 124px;
cursor:pointer;
border:1px solid #fff;
}
.play_name:hover {
border:1px solid #cf9;
}
.
play_name:hover .ico_play{
background-image: url(ico_play.png);
}
.title1 {
display: block;
padding-top: 80px;
padding-left: 4px;
font: 12px/1.5 Tahoma, "微软雅⿊";
color: #fff;
font-weight:bold;
}
.
cname1 {
display: block;
padding-left: 4px;
font: 12px/1.5 Tahoma, "微软雅⿊";
color: #cf9;
font-weight:bold;
}html图片展示特效
.ico_play {
position: absolute;
top: 48px;
left: 90px;
width: 60px;
height: 60px;
}
<!DOCTYPE html>
<html xmlns="/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title></title>
<link href="css.css" rel="stylesheet" />
</head>
<body>
<div class="play_name">
<span class="title1">成为光芒完整版</span>
<span class="cname1">Block B </span>
<div class="ico_play"></div>
</div>
</body>
</html>
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系QQ:729038198,我们将在24小时内删除。
发表评论