我在 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/