HTML/適應word:修訂版本之間的差異
出自六年制學程
(→2010) |
(→2010) |
||
第 2 行: | 第 2 行: | ||
==2010== | ==2010== | ||
*忽視「<!DOCTYPE html>」,可寫,以便使用下一項。 | *忽視「<!DOCTYPE html>」,可寫,以便使用下一項。 | ||
+ | *須<html xmlns:w='urn:schemas-microsoft-com:office:word'>才能進入整頁模式 | ||
+ | *#xmlns xml名稱空間(namespace) | ||
+ | *#w | ||
+ | *#最後一段代表(uniform resource name)urn:架構們-微軟-com:辦公室軟體:文字處理 | ||
*接受「<meta charset='utf-8' />」 | *接受「<meta charset='utf-8' />」 | ||
*以整頁模式顯示: | *以整頁模式顯示: | ||
<pre> | <pre> | ||
− | <!--[if gte mso 9]> | + | <!--[if gte mso 9]> |
− | <xml> | + | <xml> |
− | <w:WordDocument> | + | <w:WordDocument> |
<w:View>Print</w:View> | <w:View>Print</w:View> | ||
− | </w:WordDocument> | + | </w:WordDocument> |
</xml> | </xml> | ||
<![endif]--></pre> | <![endif]--></pre> |
2017年10月15日 (日) 21:22的修訂版本
2010
- 忽視「<!DOCTYPE html>」,可寫,以便使用下一項。
- 須<html xmlns:w='urn:schemas-microsoft-com:office:word'>才能進入整頁模式
- xmlns xml名稱空間(namespace)
- w
- 最後一段代表(uniform resource name)urn:架構們-微軟-com:辦公室軟體:文字處理
- 接受「<meta charset='utf-8' />」
- 以整頁模式顯示:
<!--[if gte mso 9]> <xml> <w:WordDocument> <w:View>Print</w:View> </w:WordDocument> </xml> <![endif]-->
- title標籤,決定頁名。
- 以<link rel='stylesheet' type='text/css' href='網址' />來載入樣式表
- style段落中
@page 樣式值 {size:寬 長;margin:上 右 下 左;} .nicetable {border:1px solid black;border-collapse:collapse;} .nicetable td{border:1px solid black;border-collapse:collapse;}
- body 中 以<div style='page:樣式值;'>…</div>包起文件內容