对不起,我知道这非常简单,但我无法弄清楚。
这是我目前的 CSS 样式
@import url(https://fonts.googleapis.com/css?family=Advent+Pro:100);
html {
}
#overlay {
font-family: 'Advent Pro', sans-serif;
font-size: 7em;
margin: .2em .5em;
color: rgba(255, 255, 255, 1);
position: fixed;
right: 0;
}
video#bgvid {
position: fixed;
right: 0;
top: 0;
width: 100%;
height: auto;
z-index: -100;
background-size: cover;
}
我怎样才能居中#overlay?!
使用text-align:center
. 如果需要,您可能需要将其宽度设置为 100%。
希望这可以帮助。
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句