【发布时间】:2015-01-20 17:53:09
【问题描述】:
我使用 includetext-function 将 html* 包含到 ms word 2010 文档中:
{ INCLUDETEXT "test.html" }
那是html:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<style type="text/css">
body {
line-height: 100%;
}
p {
margin: 0px;
padding: 0px;
}
</style>
</head>
<body>
<p>Line 1<br/>Line 2</p>
</body>
</html>
我没有设法在 html/css 中用 word 格式化段落间距。边距和填充属性都不起作用。我检查的所有其他 css 属性(字体*、空白、颜色)都工作正常。
没有<p>-tag 单词将段落间距设置为10 pt,在<p>-tag 内,我得到“自动”,这也给我的完整文档带来了麻烦。
哪个css属性与单词兼容来定义段落间距?
非常感谢。
(* 带有 xslt 样式表的 xml - 但为了简化演示)
【问题讨论】:
标签: html css ms-word paragraph