How can I position the title to the middle of the table?
红红火火恍恍惚惚
红红火火恍恍惚惚 2019-10-22 00:38:02
0
3
1418

Because this table is relatively small, it should not be centered. I had no choice but to link a css with margin-left: 400px; but the title definitely does not use css, so I am wrong. Can anyone help me? Are there any other errors? The following is the code

<meta charset="utf8">
<link href="css1.css"rel=

红红火火恍恍惚惚
红红火火恍恍惚惚

reply all(2)

echo '<h1>'.$a.'</h1>';changed to echo '<h1 style="text-align:center">'.$a.'</h1&gt ;'; You can try changing the width=900 below to width=100%~~

  • reply echo '<h1 align="center">'.$a.'</h1>'; This works too~
    author 2019-11-15 17:11:55
红红火火恍恍惚惚

Question supplement: Because this table is in the upper left corner by default and is not full screen. If you use center, the title will run to the middle of the screen and the table is in the upper left corner. This does not achieve the effect required by the assignment. Although I use css, it looks like Same as the answer, but the author definitely didn’t use css

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template