.dialog { position: fixed; top: 60vw; z-index: 9999; display: flex; box-sizing: border-box; flex-direction: column; width: 96vw; margin: 0 2vw; padding: 2vw; background-color: #f9f9f9; box-shadow: 0 0 5px #cccccc; border-radius: 5px; animation: mymove 2s; animation-iteration-count: 1; } .dialog .one { display: flex; flex-direction: row; justify-content: space-between; margin: 0 0 1vw 0; } .dialog .one .one_1 { font-size: 14px; font-weight: bold; } .dialog .two { max-height: 40vh; overflow-y: auto; } @keyframes mymove { from { top: 0vw; } to { top: 60vw; } }