🔥码云GVP开源项目 12k star Uniapp+ElementUI 功能强大 支持多语言、二开方便! 广告
[CSS参考手册](http://css.doyoe.com/)»[属性列表](#)»[文本属性](#)» 相关内容: [**其它文本属性参考**选择其它项](#) - [text-indent](#) - [text-overflow](#) - [text-align](#) - [text-transform](#) - [text-decoration](#) - [text-decoration-line](#) - [text-decoration-color](#) - [text-decoration-style](#) - [text-shadow](#) - [text-fill-color](#) - [text-stroke](#) - [text-stroke-width](#) - [text-stroke-color](#) - [letter-spacing](#) - [word-spacing](#) - [vertical-align](#) - [word-wrap](#) - [white-space](#) - [direction](#) - [unicode-bidi](#) - [line-height](#) - [tab-size](#) # text-align - **版本:CSS1/CSS3** - 继承性:有 ### 语法: **text-align**:left | center | right | justify | start | end **默认值**:start ### 取值: left:内容左对齐。center:内容居中对齐。right:内容右对齐。justify:内容两端对齐。*写本文档时仅Firefox能看到正确效果*start:内容对齐开始边界。(CSS3)end:内容对齐结束边界。(CSS3) ### 说明: **设置或检索对象中内容的水平对齐方式。** - 对应的脚本特性为**textAlign**。 ### 兼容性: - 浅绿 = 支持 - 红色 = 不支持 - 墨绿 = 部分支持 - 橙色 = 实验性质 | [支持版本](# "查看本文档测试时所用浏览器版本")\类型 | IE | Firefox | Safari | Chrome | Opera | |-----|-----|-----|-----|-----|-----| | 版本 | 6.0-9.0 [#1](#) | 4.0 | 5.1 [#2](#) | 13.0-16.0 [#3](#) | 11.50-11.60 [#4](#) | 1. IE9及更早浏览器不支持justify;不支持CSS3新增参数值start | end。 1. Safari5.1不支持justify。 1. Chrome13.0-16.0不支持justify。 1. Opera11.50-11.60不支持justify;不支持CSS3新增参数值start | end。 ### 示例: - **左对齐** 我是左对齐内容 - **居中对齐** 我是居中对齐内容 - **右对齐** 我是右对齐内容 - **两端对齐** 我是两端对齐内容,除了最后一行外,我的每行文字两端都是对齐的。你将在Firefox中看到效果。 - **start** start效果 - **end** end效果 Copyright © 2006-2012 [Doyoe](http://www.doyoe.com/). All Rights Reserved