为什么这两个代码块呈现不同?
<button>text1</button>
<button>text2</button>vs
<button>text1</button><button>text2</button>
需要澄清的:
我们可以在这个小屁孩中看到
发布于 2020-04-01 00:19:33
发布于 2020-03-31 22:49:10
HTML中的"EOL“你必须告诉它,试着把<br>放在按钮之间。
<html>
<head>
<title>Page Title</title>
</head>
<body>
<h1>Case 1</h1>
<button>text1</button>
<br>
<button>text2</button>
<h1>Case 2</h1>
<button>text1</button>
<br>
<button>text2</button>
</body>
</html>https://stackoverflow.com/questions/60961032
复制相似问题