CSS3 box-direction ÊôÐÔ

ʵÀý

ÒÔ·´·½ÏòÏÔʾ div ¿òµÄ×ÓÔªËØ£º

div
{
width:350px;
height:100px;
border:1px solid black;

/* Firefox */
display:-moz-box;
-moz-box-direction:reverse;

/* Safari¡¢Opera ÒÔ¼° Chrome */
display:-webkit-box;
-webkit-box-direction:reverse;

/* W3C */
display:box;
box-direction:reverse;
}

Ç××ÔÊÔÒ»ÊÔ

ä¯ÀÀÆ÷Ö§³Ö

ĿǰûÓÐä¯ÀÀÆ÷Ö§³Ö box-direction ÊôÐÔ¡£

Firefox Ö§³ÖÌæ´úµÄ -moz-box-direction ÊôÐÔ¡£

Safari¡¢Opera ÒÔ¼° Chrome Ö§³ÖÌæ´úµÄ -webkit-box-direction ÊôÐÔ¡£

¶¨ÒåºÍÓ÷¨

box-direction ÊôÐԹ涨¿òÔªËØµÄ×ÓÔªËØÒÔʲô·½ÏòÀ´ÅÅÁС£

ĬÈÏÖµ£º normal
¼Ì³ÐÐÔ£º no
°æ±¾£º CSS3
JavaScript Óï·¨£º object.style.boxDirection="reverse"

Óï·¨

box-direction: normal|reverse|inherit;
Öµ ÃèÊö ²âÊÔ
normal ÒÔĬÈÏ·½ÏòÏÔʾ×ÓÔªËØ¡£ ²âÊÔ
reverse ÒÔ·´·½ÏòÏÔʾ×ÓÔªËØ¡£ ²âÊÔ
inherit Ó¦¸Ã´Ó×ÓÔªËØ¼Ì³Ð box-direction ÊôÐÔµÄÖµ
VUE