如果内容在其边框中溢出,如何在页面中自动创建水平滚动条。
<html>
<body>
<div style ="width: 20px; height:30px; border:1px solid black; overflow:auto">
<!-- various of text here that can makes it go out the border-->
</div>
</body>
</html>
又是我。因此,我应该在我的程序中接收一个input.md文件。这个文件是一些基本html的markdown文件。例如:
Title!
This should be simple.
But its not
---
body of text
---
这就是我的输入文件的基本结构。现在,在我的项目中,我需要格式化传入的字符串行,以便文件的" title !“或行1进入标题空间中的HTML布局。标题位于标题和水平标尺之间,正文位于水平标尺之后。
这是我正在使用的布局。
<html>
<head>
<meta http