css自适应布局实现用户评价引用卡片效果代码
代码语言:html
所属分类:布局界面
代码描述:css自适应布局实现用户评价引用卡片效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <style> *{ margin: 0; padding: 0; box-sizing: border-box; font-family: "微软雅黑", sans-serif; } body{ display: flex; justify-content: center; align-self: center; min-height: 100vh; background: skyblue; } .container{ position: relative; width: 1100px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; margin: 20px; } .container .box{ position: relative; display: flex; justify-content: center; align-items: center; width: 320px; height: 420px; margin: 20px; background: #121e27; } .container .box .content{ padding: 30px; text-align: center; } .container .box .content .quto{ max-width: 48px; } .container .box .content p{ color: #fff; padding: 20px 0; } .container .box .content .user{ max-width: 72px; border-radius: 50%; } .container .box .content h3{ color: #096; font-size: 16px; letter-spacing: 1px; font-weight: 600; } @media(max-width:1050px){ .container{ justify-content: center; } } @media(max-width:768px){ .container .box{ width: 100%; height: auto; padding: 30px 20px ; } } </style> </head> <body> <div class="container"> <div class="box"> <div class="content"> .........完整代码请登录后点击上方下载按钮下载查看
网友评论0