gpt4 book ai didi

HTML 帮助缩进
中的第一行

转载 作者:太空宇宙 更新时间:2023-11-04 01:34:47 25 4
gpt4 key购买 nike

我正在创建一个 HTML 帮助文件(是的,是的,我知道它已经过时了,但 Microsoft 尚未提供更新的替代文件)。

当我在普通浏览器中打开文件时,文本显示如我所愿。但是当我在 HTML 帮助查看器中打开文件时,每个 <dd> 中的第一行元素缩进,这是我不想要的。

enter image description here

这是我的 CSS 文件。

body 
{
color: #111;
font-family: Arial, Helvetica, Sans-Serif;
font-size: 12px;
}
dt {
font-weight: bold;
margin-top: 8px;
margin-bottom: 8px;
}
dd {
margin-left: 18px;
}
pre {
color: blue;
}

这是我的 HTML 的一部分。

<!doctype html public "-//W3C//DTD HTML 3.2 Final//EN">
<html>
<head>
<meta http-equiv="Content-Type" Content="text/html; charset=Windows-1252">
<title>CYGNUSSTATEINFO Structure</title>
<link href="Style.css" rel="stylesheet" type="text/css" />
</head>

<h1>CYGNUSSTATEINFO Structure</h1>

<p>
The CYGNUSSTATEINFO structure contains information about the current state and settings of the Cygnus application. This information may be useful for programming extensions that need more information about the data being processed. This structure contains the following members.
</p>

<dt>HWND hCygnusWnd</dt>
<dd>
A handle to the main Cygnus window.
</dd>

<dt>LPWSTR lpszCurrFile</dt>
<dd>
A Unicode string that specifies the name of the current file being edited. Note that this member is for display purposes only and does not contain a fully qualified path.
</dd>

<dt>int nStartOffset</dt>
<dd>
Specifies the offset of the start of any selection. This may be useful when it is necessary to know the offset of the data being processed. This member is zero if there is no selection associated with the current task.
</dd>

<dt>int nBytesPerRow</dt>
<dd>
Specifies the current number of bytes per row.
</dd>

<dt>int nOffsetRadix</dt>
<dd>
Specifies the current offset radix. This is the notation used to show the offset of each row. It will be 16 for hexadecimal, 10 for decimal.
</dd>

<dt>int nGroupBy</dt>
<dd>
Specifies the number of bytes per group in the hex portion of the display. This value is one if there is no byte grouping.
</dd>

<!-- Etc.... -->

</body>
</html>

谁能理解为什么第一行要在这里缩进?我试过设置 text-indent: 0没有成功。我还尝试将 DOCTYPE 更改为 <!doctype html> , 但没有任何改变。

最佳答案

将以下语句添加到 <head>所有 HTML 文件的一部分。如果 HTML 主题文件封装在 .chm 帮助文件中,这将起作用。

<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE11"/>

例如:

<!doctype html public "-//W3C//DTD HTML 3.2 Final//EN">
<html>
<head>
<meta http-equiv="Content-Type" Content="text/html; charset=Windows-1252">
<title>CYGNUSSTATEINFO Structure</title>
<link href="Style.css" rel="stylesheet" type="text/css" />
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE11"/>
</head>

enter image description here

有关更多信息,请查看我们的 FAR HTML 知识库 CSS3 in FAR Browser

和 Rick Strahl 的网络日志 Make your CHM Help Files show HTML5 and CSS3 Content

关于HTML 帮助缩进 <dd> 中的第一行,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46437669/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com