[英]How can I align the border at the center of the html page
<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的情況下將邊框放在頁面中間嗎?
只需將“ 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>
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.