Angular实现九宫格抽奖
step1: D:\vue\untitled2906\src\app\app.component.css
.sudoku_row{
display: flex;
align-items: center;
width:100%;
flex-wrap: wrap;
}
.sudoku_item{
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
width:32%;
padding-top: 10px;
padding-bottom: 10px;
}
.sudoku_item img{
margin-bottom: 3px;
display: block;
width: 100px;
height: 100px;
}
.sudoku_item span{
margin-top: 10px;
padding-top: 10px;
display: block;
width: 100px;
text-align: center;
height: 30px;
}
step2: D:\vue\untitled2906\src\app\app.component.html
<html>
<head>
</head>
<body>
<div [ngStyle]=