纯css实现链接悬停背景变化效果代码
代码语言:html
所属分类:悬停
代码描述:纯css实现链接悬停背景变化效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html>
<html lang="en" >
<head>
<meta charset="UTF-8">
<style>
@import url("https://fonts.googleapis.com/css2?family=Libre+Baskerville&display=swap");
body {
top: 0;
left: 0;
width: 100vw;
height: 100vh;
margin: 0;
padding: 2rem 0 0;
font-size: 16px;
font-family: 'Libre Baskerville', serif;
color: #333;
background: #fff;
overflow-x: hidden;
}
body .message {
position: absolute;
left: 0.5vw;
top: 1vw;
max-width: 60vw;
font-size: 0.75em;
}
body .message a {
color: inherit;
text-decoration: none;
border-bottom: 1px solid #444;
}
body .message a:hover {
border-width: 3px;
}
body p {
display: block;
box-sizing: border-box;
width: 100%;
max-width: 600px;
margin: 1rem auto;
padding: 1em;
text-align: center;
font-size: 1em;
line-height: 1.5;
}
body p a {
display: inline-block;
.........完整代码请登录后点击上方下载按钮下载查看
网友评论0