css中的弹性盒的筛子的制作
运用简单的flex的基本属性,做成六个筛子的面;后面还有动态的筛子;
代码如下:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>css中的弹性盒筛子的制作</title>
<style>
*{
margin: 0;padding: 0;}
body,html{
height: 100%;}
body{
display: flex;
justify-content: space-around;
align-items: center;
flex-wrap: wrap;
}
div{
width: 104px;
height: 104px;
background: #e7e7e7;
box-shadow:0px 4px 0px 0px #ffffff inset,0px -4px 0px 0px #bbbbbb inset,4px 0px 0px 0px #d7d7d7 inset,-4px 0px 0px 0px #d7d7d7 inset ;
border-radius: 15px;