the html code is as follows:
<div class="detail-wrapper clearfix">
<div class="detail-main">
<div>11111</div>
<div>11111</div>
</div>
</div>
the css code is as follows:
.detail
overflow: auto
position: fixed
top: 0
left: 0
width: 100%
height: 100%
background-color: rgba(7, 17, 27, .7)
z-index: 10
.detail-wrapper
min-height: 100%
width: 100%
.detail-main
padding-top: 1.28rem
padding-bottom: 1.28rem
color: -sharpffffff
width is set to 100%, or no width is set, the scroll bar will appear horizontally. How to make the width is the width of the screen, and there is no scroll bar horizontally