HTML5中对dir属性的解释与规定
Normal 0 7.8 磅 0 2 false false false EN-US ZH-CN X-NONE /* Style Definitions */
table.MsoNormalTable
{mso-style-name:普通表格;
mso-tstyle-rowband-size:0;
mso-tstyle-colband-size:0;
mso-style-noshow:yes;
mso-style-priority:99;
mso-style-qformat:yes;
mso-style-parent:"";
mso-padding-alt:0cm 5.4pt 0cm 5.4pt;
mso-para-margin:0cm;
mso-para-margin-bottom:.0001pt;
mso-pagination:widow-orphan;
font-size:10.5pt;
mso-bidi-font-size:11.0pt;
font-family:"Calibri","sans-serif";
mso-ascii-font-family:Calibri;
mso-ascii-theme-font:minor-latin;
mso-hansi-font-family:Calibri;
mso-hansi-theme-font:minor-latin;
mso-font-kerning:1.0pt;}
HTML5中对dir属性的解释与规定
ltr :从左到有。
rtl:从右到左。
auto:根据文本内容自动决定,不准确,不建议使用,除非万不得已。
元素的dir属性用于定义元素的文字排版方向。
可设置如下几个值:
bdi元素没有设置dir属性时,和设置auto效果一致。
根元素没有设置dir属性时,和设置成ltr效果一致。
元素没有设置dir属性,而其父元素设置了dir属性时,将参考父元素的dir属性。
相比与CSS方法,HTML5标准更鼓励大家通过设置dir属性来达到排版效果(例如搜索引擎可能不会抓取css文件)。
ngines).
以上就是HTML5中对dir属性的解释与规定的内容,更多相关内容请关注PHP中文网(HdhCmsTestgxlcms测试数据)!
查看更多关于HTML5中对dir属性的解释与规定的详细内容...
阅读:41次