css字体两边贴边对齐
时间: 2023-10-15 17:30:02 浏览: 164
要实现CSS字体两边贴边对齐可以使用`text-align-last`属性,并将其值设置为`justify`。这个属性可以使得文本在最后一行之前通过增加字间距来实现对齐。例如,在一个`.item_title`的样式中,可以添加`text-align-last: justify;`来实现字体两边贴边对齐。 <span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *2* [css实现一行文字左右靠边对齐](https://blog.csdn.net/belove_lucy/article/details/85248150)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
- *3* [让多个元素贴边平分布局](https://blog.csdn.net/weixin_33850015/article/details/88860562)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文