非标
此特征是非标准的,且不在标准轨道中。不要在面向 Web 的生产站点中使用它:它不适用于每个用户。实现之间可能存在大的不兼容性,且行为将来可能改变。

-moz-orient CSS property specifies the orientation of the element to which it's applied.

句法

-moz-orient property is specified as one of the keyword values chosen from the list below.

inline

The element is rendered in the same direction as the axis of the text: horizontally for horizontal writing modes, vertically for vertical writing modes.

block

The element is rendered orthogonally to the axis of the text: vertically for horizontal writing modes, horizontal for vertical writing modes.

horizontal

The element is rendered horizontally.

vertical

The element is rendered vertically.

形式定义

初始值 inline
适用于 any element; it has an effect on progress and meter , but not on <input type="range"> or other elements
继承 no
计算值 如指定
动画类型 discrete

形式句法

inline | block | horizontal | vertical
					

范例

HTML

<p>
  The following progress meter
  is horizontal (the default):
</p>
<progress max="100" value="75"></progress>
<p>
 The following progress meter
 is vertical:
</p>
<progress class="vert" max="100" value="75"></progress>
					

CSS

.vert {
  -moz-orient: vertical;
  width: 16px;
  height: 150px;
}
					

结果

规范

Not part of any standard. Though submitted to the W3C, with positive initial feedback, this property is not yet part of any specification; currently, this is a Mozilla-specific extension (that is, -moz-orient ).

浏览器兼容性

The compatibility table in this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request. 更新 GitHub 上的兼容性数据
Desktop Mobile
Chrome Edge Firefox Internet Explorer Opera Safari Android webview Chrome for Android Firefox for Android Opera for Android Safari on iOS Samsung Internet
-moz-orient 非标 Chrome 不支持 No Edge 不支持 No Firefox 完整支持 6 IE 不支持 No Opera 不支持 No Safari 不支持 No WebView Android 不支持 No Chrome Android 不支持 No Firefox Android 完整支持 6 Opera Android 不支持 No Safari iOS 不支持 No Samsung Internet Android 不支持 No
auto value 弃用 非标 Chrome 不支持 No Edge 不支持 No Firefox 不支持 21 — 40 注意事项
不支持 21 — 40 注意事项
注意事项 auto value was equivalent to horizontal .
IE 不支持 No Opera 不支持 No Safari 不支持 No WebView Android 不支持 No Chrome Android 不支持 No Firefox Android 不支持 21 — 40 注意事项
不支持 21 — 40 注意事项
注意事项 auto value was equivalent to horizontal .
Opera Android 不支持 No Safari iOS 不支持 No Samsung Internet Android 不支持 No
inline and block 非标 Chrome 不支持 No Edge 不支持 No Firefox 完整支持 40 IE 不支持 No Opera 不支持 No Safari 不支持 No WebView Android 不支持 No Chrome Android 不支持 No Firefox Android 完整支持 40 Opera Android 不支持 No Safari iOS 不支持 No Samsung Internet Android 不支持 No

图例

完整支持

完整支持

不支持

不支持

非标。预期跨浏览器支持较差。

非标。预期跨浏览器支持较差。

弃用。不要用于新网站。

弃用。不要用于新网站。

见实现注意事项。

见实现注意事项。

另请参阅

元数据

  • 最后修改: