ppt xml代码 文字的空格
在PPT的XML代码中,空格可以用以下两种方式表示:
- 使用空格字符(
 )来表示空格,例如:
<a:p>
<a:r>
<a:t>这是一段</a:t>
</a:r>
<a:r>
<a:t xml:space="preserve">  </a:t>
</a:r>
<a:r>
<a:t>有空格的文字</a:t>
</a:r>
</a:p>
其中,xml:space="preserve"表示保留空格字符。
- 使用
<a:spc>元素来表示空格,例如:
<a:p>
<a:r>
<a:t>这是一段</a:t>
</a:r>
<a:r>
<a:spc></a:spc>
</a:r>
<a:r>
<a:t>有空格的文字</a:t>
</a:r>
</a:p>
其中,<a:spc>元素表示空格,可以在元素中添加cnt属性来表示需要多少个空格。例如,<a:spc cnt="2"></a:spc>表示需要两个空格。
原文地址: https://www.cveoy.top/t/topic/Epe 著作权归作者所有。请勿转载和采集!