javascript - How to export html page to ms. word (.doc) with external CSS? -


i want export html page .doc format external css. i'm using jquery.wordexport.js , filesaver.js.

this want export:

<div id="export">content</div> 

and js:

<script type="text/javascript">     jquery(document).ready(function($) {         $("a.word-export").click(function(event) {             $("#export").wordexport();         });     });     </script> 

i include external css:

<link href="css/style.css" rel="stylesheet"> 

i can export html page word, problem doesn't let me include external css. works inline css makes code looks messy , have type same style every page. , also, doesn't read margin , padding, cannot manage position of text.

can me? appreciate it. thank you!

you can put full path (absolute paths) of css file <link href="{absolute paths}css/style.css" rel="stylesheet"> beause ms-word can't read relative path.

example:

<link href="http://www.domain.com/css/style.css" rel="stylesheet">


Comments

Popular posts from this blog

c# - Binding a comma separated list to a List<int> in asp.net web api -

Delphi 7 and decode UTF-8 base64 -

html - Is there any way to exclude a single element from the style? (Bootstrap) -