<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<style>
#box {
width: 400px;
height: 20px;
border: 1px solid #999;
margin: 0 auto;
text-align: center;
}
#box1 {
height: 100%;
width: 0px;
background-color: red;
}
</style>
</head>
<body>
<div id="box">
<div i