重合後立即顯示幾行這是我的HTML代碼:我想在屏幕中心對齊標誌和image.But文本與圖像
<img class="centeredimage" src="BLACK.jpg"><br><br>
<p align="center" class="new"><b><span class="main_text">This is regarding....</span></b><br><br>
<span class = "a2017">Welcome to 2017</span><br><br>
<span class="coming_soon">Coming Soon</span></p><br><br>
這是我的CSS代碼:
.centeredimage {
position: absolute;
top: 50%;
left: 50%;
margin-top: -100px;
margin-left: -100px;
width: 200px;
height: 200px;
}
.new{
color:#FFFFFF;
}
.main_text{
font-size:20px;
letter-spacing: 8px;
}
.a2017{
font-size:15px ;
letter-spacing:2px ;
}
.coming_soon{
letter-spacing: 1px;
}
的圖像在屏幕中心對齊,但文本,而不是圖像後得到顯示顯示與image.How重合做我讓它進來後的圖像,使兩者在中間對齊屏幕在中心?
你所說的「後」的意思。你的意思是「在...下」或「在......的右邊」? –
我的意思是在下一行之後。 – Aman50