HTML使MS Word风景优美 [英] HTML to landscape MS Word

查看:81
本文介绍了HTML使MS Word风景优美的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

MS Word可以将HTML解释为文档,但是我想在HTML代码中指定以在美化的信函页面中显示它.有可能吗?

MS Word can interpret HTML as a document, but I want to specify in the HTML code to display it in landscaped letter pages. Is it possible?

推荐答案

<!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使MS Word风景优美的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆