Как применить внешнюю таблицу стилей CSS к документу в Microsoft Word?

22402
Sean O

Похоже, здесь должен быть простой ответ, но его нельзя найти в Word Help, MS Office Online или Google ...

Я просто хочу иметь возможность применить внешнюю таблицу стилей CSS ( например, standardstyles.css ) к текущему документу в Microsoft Word (2007). Я просматривал меню «Стили», просматривал все классические диалоги форматирования, но ничего не могу найти.

6

1 ответ на вопрос

3
pelms

Save your Word document as 'Web page (*.htm; *.html)'. This will give you a html document with an associated folder named after the document (e.g. Doc1.htm and Doc1_files).

Add your stylesheet to the folder and then link to it using:

'Developer' tab > Document Template > Linked CSS (tab) > Add...'

The css heading styles (h1, h2 etc.) in the stylesheet correspond to the heading styles applied within Word and the p style corresponds to the Word 'Normal' style. Similarly for lists and tables etc.

Ah yes, I remember seeing this before. Sounds like what I'm looking for, but when I select a .CSS file, it doesn't update the current document (whether importing or linking), and the linked stylesheet disappears after saving & reloading the .DOCX document. Ideas? Sean O 14 лет назад 0
Вы должны сохранить как веб-страницу в первую очередь. Вы не можете напрямую применить таблицу стилей CSS к файлу .docx, так как это не HTML. pelms 14 лет назад 0
Это круто! Я даже не знал, что это вариант, и теперь у меня есть полный контроль над внешним видом сохраненного HTML. Это все еще работает в Word 2013, кстати. Droj 8 лет назад 0

Похожие вопросы