在左边,我有按钮,屏幕的其余部分是一个表,我需要一条垂直线来充当两者之间的分隔符,但不需要使用CSS/样式/类。
以下是基本代码:
<section align="left">
<div id="buttons">
<button type="button">Fire</button>
<br>
<button type="button">Water</button>
</div>
</section>
<!-- NEED A VERTICAL LINE HERE -->
<section align="center">
<table id="pokemons">
<tr>
<td>
<h5>Charizard</h5>
</td>
<td>
<h5>Blastoise</h5>
</td>
</tr>
<br>
<tr>
<td>
<h5>Pikachu</h5>
</td>
<td>
<h5>Squirttle</h5>
</td>
</tr>
</table>
</section>
我现在有这样的功能(由于某些原因,在线编辑器中的表没有对齐,但是在我的本地代码中它是可以的):

我需要这个:

发布于 2022-10-10 19:58:38
如果您想避免使用CSS,那么您的页面就会看起来像atrocious.
<hr>标签,并在CSS.
中使用transform: rotate(90);
对不起,您必须使用CSS。没有办法绕过它,除非你使用CSS或JavaScript。
https://stackoverflow.com/questions/74019599
复制相似问题