CSS azimuth 属性
cssweb developmentfront end technology更新于 2025/9/9 13:00:17
azimuth 属性设置声音的水平来源。可能的值如下:
- angle − 位置以 -360 度 到 360 度 范围内的角度表示。0 度表示正前方,位于声场中心。90 度表示向右,180 度表示向后,270 度(或者,更方便的说法是 -90 度)表示向左。
- left-side − 与"270deg"相同。如果是"behind",则为"270deg"。
- far-left − 与"300deg"相同。如果是"behind",则为"240deg"。
- left − 与"320deg"相同。如果是"behind",则为"220deg"。
- center-left − 与"340deg"相同。设置为"后方"时,角度为"200 度"。
- center − 与"0 度"相同。设置为"后方"时,角度为"180 度"。
- center-right − 与"20 度"相同。设置为"后方"时,角度为"160 度"。
- right − 与"40度"相同。如果是"后方",则为"140度"。
- far-right − 与"60度"相同。如果是"后方",则为"120度"。
- right-side − 与"90度"相同。如果是"后方",则为"90度"。
- leftwards − 将声音向左移动,相对于当前角度。更准确地说,减去 20 度。
- rightwards − 相对于当前角度,将声音向右移动。更准确地说,增加 20 度。
示例
来看一个例子 −
<style>
<!--
h1 { azimuth: 30deg }
td.a { azimuth: far-right } /* 60deg */
#12 { azimuth: behind far-right } /* 120deg */
p.comment { azimuth: behind } /* 180deg */
-->
</style>
相关文章
有用资源
css 参考教程 - 该教程包含有关 css 的更多信息:https://www.cainiaomax.com/css/

