我有一个Chrome扩展程序可以创建MLA引用并将它们上传到谷歌驱动器。它工作正常,造型也有效。但是,将忽略text-indent属性。我使用谷歌的驱动API发送文件。我需要知道如何使用该属性,所以看起来像这样:
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam erat
velit, lobortis quis ipsum non, dapibus tincidunt dolor. Integer
commodo, metus ac commodo scelerisque, est erat faucibus neque, vel
commodo odio sapien ac nisl. Cras scelerisque mi id venenatis
fringilla.
发送的HTML:
html += '<p dir="ltr" style="line-height:2.0;margin-top:0pt;margin-
bottom:0pt;padding:0pt 0pt 0pt 36pt;text-indent: -36pt;"><span
style="font-size: 12pt; font-family: "Times New Roman";
vertical-align: baseline; white-space: pre-wrap;">' + text + '</span></p>';
其他数据
扩展名:https://chrome.google.com/webstore/detail/ezcite/hglaojinolkdpdnnnhlohffjpckcodjh
答案 0 :(得分:0)
我想出了如何解决这个问题:我没有使用style属性导出,而是将css放入样式元素中,并且只引用了正文的正确类。