我使用 Hakyll 生成一些文档,我注意到它有一种奇怪的方式来关闭它生成的代码中的 HTML 标记。
有一个页面,他们说您必须像他们一样生成标记,否则您的页面布局在某些情况下会被破坏,但我现在找不到。
我创建了一个小测试页面(下面的代码),其中有一个带有“正常”HTML 标记的红色层和一个带有类似于 hakyll 生成的标记的黄色层。
我看不出两个 div 在 Firefox 中的任何区别。
谁能解释他们说的是否属实?
<html>
<body>
<!-- NORMAL STYLE -->
<div style="background: red">
<p>Make available the code from the library you added to your application. Again, the way to do this varies between languages (from adding import statements in python to adding a jar to the classpath for java)</p>
<p>Create an instance of the client and, in your code, make calls to it through this instance's methods.</p>
</div>
<!-- HAKYLL STYLE -->
<div style="background: yellow"
><p
>Make available the code from the library you added to your application. Again, the way to do this varies between languages (from adding import statements in python to adding a jar to the classpath for java)</p
><p
>Create an instance of the client and, in your code, make calls to it through this instance's methods.</p
></div
>
</body>
<html>