.simpleAlert{position: fixed;z-index: 1000;} .simpleAlertShelter{position: fixed;width: 100%;height: 100%;top:0;left:0;background-color: #bfbfbf;opacity: 0.3;filter:alpha(opacity=30);} .simpleAlertBody{position:fixed;display: none;width:30%;height:55px;top:50%;left:35%;margin:0;opacity:0;border: 1px solid #eaeaea;background-color: #fff;} @media (min-width:1px) and (max-width:768px) { .simpleAlertBody{width:70%; left:15%;} } .simpleAlertBodyClose{position: absolute;width: 14px;height: 14px;top:10px;right: 10px;cursor: pointer;} .simpleAlertBodyContent{position: absolute;top:0%;width:90%;height:48px;line-height:48px;overflow-y:auto;left: 2%;text-align: center;font-size: 18px;font-weight: 600;color: #333;}