Ms word DocxOpenXML默认字符样式

Ms word DocxOpenXML默认字符样式,ms-word,openxml,docx,Ms Word,Openxml,Docx,我通过一次运行获取新的DOCX文档并尝试添加 <w:style w:type="character" w:default="1" w:styleId="QQQ"> <w:rPr> <w:b/> </w:rPr> </w:style> 转换为word/styles.xml/w:styles。我希望在我的只运行粗体文本,但我没有。“运行”没有对任何其他样式的引用。如果我将w:type更改为“段落”,则我的跑步将

我通过一次运行获取新的DOCX文档并尝试添加

<w:style w:type="character" w:default="1" w:styleId="QQQ">
   <w:rPr>
      <w:b/>
   </w:rPr>
</w:style>

转换为word/styles.xml/w:styles。我希望在我的只运行粗体文本,但我没有。“运行”没有对任何其他样式的引用。如果我将w:type更改为“段落”,则我的跑步将变为粗体。从ECMA-376来看,类型为class='character'的样式似乎会影响所有跑步。如果没有,w:type=“character”的用途是什么

Thanx这是个公平的问题

您可以通过修改w:docDefaults/w:docDefaults:

<w:styles  xmlns:w="http://schemas.openxmlformats.org/wordprocessingml/2006/main">
  <w:docDefaults>
    <w:rPrDefault>
      <w:rPr>