如何在html页面的中心对齐边框

时间:2016-04-27 16:25:00

标签: html center

<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吗?

1 个答案:

答案 0 :(得分:1)

只需附上&#34; div &#34;在 标记中。那就行了!

<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>