HTML横向移动MS Word



MS Word可以将HTML解释为文档,但我想在HTML代码中指定将其显示在风景优美的字母页面中。有可能吗?

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html xmlns:office="urn:schemas-microsoft-com:office:office"
      xmlns:word="urn:schemas-microsoft-com:office:word"
      xmlns="http://www.w3.org/TR/REC-html40">
<head>
<style>        
@page Section1 {size:595.45pt 841.7pt; margin:1.0in 1.25in 1.0in 1.25in;mso-header-margin:.5in;mso-footer-margin:.5in;mso-paper-source:0;}
        div.Section1 {page:Section1;}
        @page Section2 {size:841.7pt 595.45pt;mso-page-orientation:landscape;margin:1.25in 1.0in 1.25in 1.0in;mso-header-margin:.5in;mso-footer-margin:.5in;mso-paper-source:0;}
        div.Section2 {page:Section2;}
</style>
</head>
<body>
<div class=Section2>
<!--your content here-->
</div>
</body>
</html>

由于HTML没有"页面"的概念,因此也没有面向页面的概念,所以使用简单的开箱即用HTML无法实现这一点。Word确实有HTML文件格式,但它没有文档。它是多年前添加的,用于在浏览器中显示往返的Word文档。如果你将Word文档保存为"网页"(而不是过滤后的网页),那么我认为你会得到该文件格式(否则是"单个文件网页"选项)。您可以对此进行检查,并尝试将HTML内容合并到Word的HTML词汇表中。

最新更新