SweetAlert 图标溢出-y

SweetAlert Icon overflow-y

我在修改我的网站时遇到问题。当我调用 Swal.fire(...) 时,会发生这样的事情:

图片上的图标溢出,无法正确渲染(好像滚动条影响了图标渲染)。我怎样才能解决这个问题?谢谢 这是我的自定义 css 代码:

* {
    margin: 0px;
    padding: 0px;
    font-family: 'Roboto Mono', monospace;
    overflow-x: hidden;
    color: white;
    user-select: none;
    font-size: 20px;
}
h1 {
    font-size: 60px;
}

body {
    z-index: -2;
    background-color: black;
}

#canvas1 {
    position:absolute;
    top:0;
    left:0;
    width:100%;
    height:100%;
    z-index:-1;
    background: black;
}

.header {
    text-align: center;
    height: 100vh;
}

.header-title {
    font-size: 70px;
    font-weight: bold;
    margin-top: 40vh;
}

section {
    padding: 20vh;
}

.section-title {
    font-size: 60px;
}
.section-text {
    font-size: 25px;
}

footer {
    height: 30vh;
    background-color: rgb(24, 24, 24);
}

.navbar {
    font-size: 40px;
    position: fixed;
    list-style-type: none;
    overflow: hidden;
}

.navbar > li {
    float: left;
}

.navbar > li a {
    transition: .3s;
    display: block;
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
}

.navbar > li a:hover {
    background-color: rgba(255, 255, 255, 0.671);
}

input {
    background-color: black;
    margin: 20px;
}

.account-creator {
    margin: auto;
  width: 50%;
  border: 3px solid white;
  padding: 10px;
  border-radius: 10px;
  margin-top: 30vh;
  padding: 10vh;
  
}

.account-creator {
    margin-bottom: 100px;
}

.small-title {
    font-size: 40px;
}

button {
    background-color: black;
}

/* The switch - the box around the slider */
.switch {
position: relative;
display: inline-block;
width: 60px;
height: 35px;
overflow-y: hidden;
}

/* Hide default HTML checkbox */
.switch input {
opacity: 0;
width: 0;
height: 0;
}

/* The slider */
.slider {
position: absolute;
cursor: pointer;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-color: #ccc;
-webkit-transition: .4s;
transition: .4s;
}

.slider:before {
position: absolute;
content: "";
height: 26px;
width: 26px;
left: 4px;
top: 4px;
background-color: white;
-webkit-transition: .4s;
transition: .4s;
}

input:checked + .slider {
background-color: #f3214f;
}

input:focus + .slider {
box-shadow: 0 0 1px #f3214f;
}

input:checked + .slider:before {
-webkit-transform: translateX(26px);
-ms-transform: translateX(26px);
transform: translateX(26px);
}

/* Rounded sliders */
.slider.round {
border-radius: 34px;
}

.slider.round:before {
border-radius: 50%;
}

.input_description{
    font-size: 30px;
    
}

.simple-button {
    background-color: #f3214f;
    padding: 10px;
    border-radius: 5px;
    border: none;
    transition: .4s;
    margin: 30px;
}

.simple-button:hover {
    transform: scale(1.2);
    box-shadow: 0px 0px 10px #f3214faf;
}

::-webkit-scrollbar {
    width: 5px;
}

::-webkit-scrollbar-thumb {
    background-image: linear-gradient(45deg, rgb(255, 115, 0) 0%, rgb(255, 0, 0) 100%);
    border-radius: 20px;    
}

::-webkit-scrollbar-thumb:hover {
    background-color: white;
    background-image: none;
    border-radius: 20px;    
}

.clauses-field{
    border: 3px solid white;
    border-radius: 10px;
    max-height: 300px;
    position: absolute;
    overflow-y: scroll;
    margin-left: 40vw;
    padding: 30px;
}


 

Idk 也许这段代码会毁了一切,但如果我不需要更改这里的任何内容就更好了,因为我的网站可能会崩溃

由于某些原因,您的图标溢出,所以橙色线是滚动条

添加.sa-icon.sa-success { overflow:hidden } 此代码在您的 css 中。如果这个剂量有效,只需检查成功图标并复制其 class 并向其添加 overflow:hidden。 如果您仍然无法做到,只需复制弹出代码并添加到您的问题中,我会给您工作代码。