我正在为获得正确的页面布局而苦苦挣扎。被 mathjax 排版的答案恰好换行。我该怎么做才能解决这个问题?
<div class="item" *ngFor="let item of shuffledArray; let i = index">
<label formArrayName="options" [ngClass]="{correctAnswer: (answerSubmitted && !answerCorrect && selectedMultipleChoiceAnswers[i] && item[1][2])}" [ngClass]="{incorrectAnswer: (answerSubmitted && !answerCorrect && selectedMultipleChoiceAnswers[i] && !item[1][2])}"
style="padding-right: 10px;padding-left: 22px;text-indent: -30px;">
<input
type="checkbox"
[formControlName]="i"
[checked]="false"
value="{{item[0]}}"
style="margin-left: 10px;"
/>
** <span [mathjax]= "item[1][0]" class="htmlChoice" style="padding-left: 5px;"></span>
</label>**
<div [hidden]="!showSolution">
<span *ngIf="!answerCorrect" [ngClass]="defineColor(item[1][2], item[0])" [innerHTML]= "item[1][1]"></span>
</div>
</div>