首先,我不是开发人员,但我需要在我的 OBS 中快速修复 CSS。
在下图https://imgur.com/a/1rgPzC7上,您可以看到“AKII0 正在关注”。
我怎样才能将“AKII0 正在跟进”的文字向上移动,靠近横幅?
感谢帮助
html
<!-- alert image -->
<div id="alert-image-wrap">
<div id="alert-image">{img}</div>
</div>
<!-- main alert box window -->
<div id="alert-text-wrap">
<!-- alert text -->
<div id="alert-text">
<!-- alert message -->
<!-- messageTemplate will be replaced with your message template -->
<!-- for example : {name} is now following! or {name} donated {amount} -->
<div id="alert-message">{messageTemplate}</div>
<div id="alert-user-message">{userMessage}</div>
</div>
</div>
CSS
body,
html {
height: 100%;
width: 100%;
overflow: hidden;
}
#wrap {
position: relative;
height: 100%;
width: 100%;
}
#alert-box {
height: 100%;
width: 100%;
position: absolute;
}
#alert-box.hidden,
.hidden {
opacity: 0;
}
#alert-text {
padding: 20px;
text-shadow: 0px 0px 1px #000, 0px 0px 2px #000, 0px 0px 3px #000,
0px 0px 4px #000, 0px 0px 5px #000;
}
#alert-message,
#alert-user-message {
text-align: center;
}
#alert-user-message img {
vertical-align: middle;
height: 1em;
}
#alert-image {
position: relative;
}
#alert-image video {
width: 100%;
height: 100%;
position: absolute;
top: 0;
left: 0;
}
#alert-message > span > span {
display: inline-block;
}
#alert-image {
z-index: 6;
position: relative;
}
#alert-text {
z-index: 6;
position: relative;
}
#alert-text-wrap {
z-index: 6;
position: relative;
}