商城网站建设报价单,王也头像 呆萌,泉州seo培训,一个数据库两个网站wordpress登陆话不多说#xff0c;先上代码 先看原图#xff1a; 再看 鼠标放上去后的图#xff1a; 是不是明显感觉到 人物头像突出了一些#xff0c;而且还增加了阴影部分的效果呢#xff1f;
直接上代码#xff01;#xff01;#xff01;
!--由于我的 img 标签放的是循环后… 话不多说先上代码 先看原图 再看 鼠标放上去后的图 是不是明显感觉到 人物头像突出了一些而且还增加了阴影部分的效果呢
直接上代码
!--由于我的 img 标签放的是循环后的图片你可以按照你的数据自行修改 --
div classswiper-slide newly-slide newly-hover speakerList--q4JTza classbaseLink--8q29k target_blank href要跳转的路径div classspeaker--r2ijqdiv classspeakerPicBox--QeEr9divimg src图片路径 classteacher-img //div/div /div/a
/div!--CSS 可能会有多出来的css,可以忽略掉多出来的css 是图片右侧的文字的样式...--
style
.speaker--r2ijq{box-sizing: border-box;cursor: pointer;display: flex;padding: 8px 12px;width: 397px;
}
.speakerProfile--oCOCh{flex: 1 1;margin-left: 12px;overflow: hidden;
}
.speakerName--bKQtn{font-size: 22px;font-weight: 600;line-height: 22px;margin-bottom: 8px;overflow: hidden;text-overflow: ellipsis;white-space: nowrap;word-break: break-all;text-align: left;cursor: pointer;color: #535353;line-height: 33px;font-family: SourceHanSansCN-Bold, SourceHanSansCN;font-weight: bold;
}
.speakerDesc--vo1ea{-webkit-box-orient: vertical;-webkit-line-clamp: 2;color: #606060;display: -webkit-box;font-weight: 400;line-height: 22px;overflow: hidden;word-break: break-all;text-align: left;margin-top: 20px;width: 225px;height: 44px;max-width:225px;font-size: 12px;font-family: PingFangSC-Regular, PingFang SC;cursor: pointer;
}.speakerList--q4JTz .speaker--r2ijq:hover .speakerPicBox--QeEr9:before{background-color: rgba(50,51,53,.1);bottom: 0;content: ;left: 0;margin: auto;position: absolute;right: 228px;top: 0;z-index: 1;width: 144px;height: 148px;border-radius: 12px;
}
.speakerList--q4JTz .speakerPicBox--QeEr9{border-radius: 12px;flex-basis: 144px;height: 148px;overflow: hidden;
}
.speaker--r2ijq:hover .teacher-img {transform: scale(1.1);
}
.speaker--r2ijq:hover .speakerName--bKQtn{color: #EA7336;
}
.teacher-more{display: inline-block;padding-top: 60px;float: right;
}
.teacher-morea{color: #A3A3A3 !important;
}
.teacher-morea:hover{color: #ff7020!important;
}
/style大功告成如上代码就是鼠标滑过后头像或图片突出的代码快去试试吧