2016-04-27 23 views
0
<html> 
<body> 
<div align="center" style="width=1000;height=100;padding=10;border=10 solid dark-blue ;"> <h> <B> hello </B> </h> <BR></div> 
</body> 
</html> 

這是我的html代碼。任何人都可以幫助我把這個邊框放在頁面中間而不使用CSS嗎?如何對齊頁面中心的邊框

+0

BLABLABLA


Jane

回答

1

只需在標記中附上「div」標記。這將訣竅!

<html> 
</body> 
<center> 
<div align="center" style="width:1000px;height:100px;padding:10px;border:10px solid darkblue ;"> <h1> <B> BLABLABLA</B> </h1> <br> </div> 
</center></body> 
</html> 
+1

真的,['center'](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/center)在2016? – insertusernamehere

+0

需要使用的東西可以在任何時間使用。在這種情況下,中心做到了這一點。 –