gpt4 book ai didi

java - 用冒号分割字符串并在 xml 中以新行显示

转载 作者:行者123 更新时间:2023-12-02 07:15:06 32 4
gpt4 key购买 nike

我在 xml 标记中有一个像这样的字符串:

He is what do you need to study: <Enter>
(i) Study chapter by chapter.
(ii) Work out the revision question.

但是它的显示是这样的

He is what do you need to study:(i) Study chapter by chapter.(ii) Work out the revision question.

那么我怎样才能像xml中那样显示呢。

最佳答案

假设您使用的是 HTML:

Here is what do you need to study:
<ul type="upper-roman">
<li>Study chapter by chapter.</li>
<li>Work out the revision question.</li>

</ul>

你的意思是这样吗?

<div>
Here is what do you need to study:
<ul type="upper-roman">
<li style="padding-left:20pt" >Study chapter by chapter.</li>
<li style="padding-left:20pt" >Work out the revision question.</li>
</ul>
</div>

关于java - 用冒号分割字符串并在 xml 中以新行显示,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15031174/

32 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com