CSS:azimuth
From MDC
« CSS 参考
[编辑] 摘要
结合 elevation,azimuth 能够对不同音源进行空间定位。这是很重要的,它提供了一个自然的途径分别呈现多个声音,而且每一个都产生于音场的不同方位上。立体声输出建立了一个平面的音场,而双路立体声耳机和多路话筒允许建立一个完整的三维立体音场。
- 默认值: center
- 应用范围:所有元素
- 可继承: 是
- 百分比:N/A
- Media: Template:xref cssaural
- 计算值: 符合标准
[编辑] 语法
azimuth: angle | [[ left-side | far-left | left |
center-left | center | center-right | right |
far-right | right-side ] || behind ] | leftwards |
rightwards | inherit
[编辑] 值
- 角度(angle)
音源位置是通过一个-360度到360度之间的角度来描述的。0度代表音场中央的正前方(这是默认值)。90度是右侧,180度是背后,而270度或者-90度是左边。
[编辑] 位置关键字
- left-side: 即
270度. - left-side behind: 即
270度. - far-left: 即
300度. - far-left behind: 即
240度. - left: 即
320度. - left behind: 即
220度. - center-left: 即
340度. - center-left behind: 即
200度. - center: 即
0度. - center behind: 即
180度. - center-right: 即
20度. - center-right behind: 即
160度. - right: 即
40度. - right behind: 即
140度. - far-right: 即
60度. - far-right behind: 即
120度. - right-side: 即
90度. - right-side behind: 即
90度. - behind: 即
180度. Also used as a modifier for other positional keyword values, as above. - leftwards: Moves the sound counter-clockwise by 20 degrees, relative to the current angle.
- rightwards: Moves the sound clockwise by 20 degrees, relative to the current angle.
[编辑] 举例
h1 { azimuth: 30deg }
td.a { azimuth: far-right } /* 60deg */
#12 { azimuth: behind far-right } /* 120deg */
p.comment { azimuth: behind } /* 180deg */
[编辑] 规范
[编辑] 浏览器兼容性
TBD (this might be abandoned in favour of a centralized compatibility chart)