Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
text-align属性仅对块级容器(如div)或display值为block、inline-block、flex等的元素生效。<span>元素默认为inline,因此text-align: start;这条规则对它本身没有效果。在下面的规则中,span[class*="romanWord"]的display被设置为flex,这使其成为一个块级容器,所以text-align会对它生效。然而,对于此选择器匹配到的其他<span>元素,这条规则将是无效的。为了确保所有目标元素都能正确对齐,建议将此样式与display属性的更改结合使用,或者将text-align应用于其父级块状元素上。