css实现鼠标悬浮伸缩图像文字卡片亮色暗色代码
代码语言:html
所属分类:悬停
代码描述:css实现鼠标悬浮伸缩图像文字卡片亮色暗色代码
代码标签: css 鼠标 悬浮 伸缩 图像 文字 卡片 亮色 暗色 代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html>
<html lang="en" >
<head>
<meta charset="UTF-8">
<link rel='stylesheet' href='https://cdnjs.cloudflare.com/ajax/libs/font-awesome/7.0.1/css/all.min.css'>
<style>
@import url('https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');
body {
min-height: 100vh;
margin: 0;
aoverflow: hidden;
background: linear-gradient(#eee, #ddd);
display: flex;
align-items: center;
justify-content: center;
gap: 2rem;
flex-wrap: wrap;
}
.card {
--bg: #fff;
--title-color: #fff;
--title-color-hover: #000;
--text-color: #666;
--button-color: #eee;
--button-color-hover: #ddd;
background: var(--bg);
border-radius: 2rem;
padding: 0.5rem;
width: 20rem;
height: 30rem;
/* aspect-ratio: 2 / 3;
height: auto; */
maargin: 2rem;
overflow:.........完整代码请登录后点击上方下载按钮下载查看
















网友评论0