<!DOCTYPE HTML>
<HTML>
<head>
<style>
.box1 {
border: 1px solid red;
height: 100px;
padding: 0 80px;
}
.box1 .left {
width: 80px;
height: 100px;
background-color: rgb(17, 129, 228);
float: left;
margin-left: -100%;
position: relative;
left: -80px;
}
.box1 .right {
width: 80px;
height: 100px;
background-color: rgb(219, 132, 17);
float: left;
margin-left: -80px;
position: relative;
right: -80px;
}
.box1 .center {
width: 100%;
height: 100px;
background-color: rgb(53, 228, 30);
float: left;
}
</style>
</head>
<body>
<h1>三栏布局</h1>
<h3>左中右布局,左右两边定宽,中间自适应:</h3>
<div class="box1">
<div class="center">圣杯布局中间弹性区域一二三322222222223332453452365436356554322222222223332453452365436356554322222222223332453452365436356554322222222223332453452365436356554322222222223332453452365436356554322222222223332453452365436356554322222222223332453452365436356554322222222223332453452365436356554322222222223332453452365436356554322222222223332453452365436356554322222222223332453452365436356554322222222223332453452365436356554322222222223332453452365436356554</div>
<div class="left">左固定</div>
<div class="right">右固定</div>
</div>
</ body>
</HTML>
这个右边可以看到中间的内容露出来了
怎么解决这个问题呢