html5的audioTag出來的performance顯現完全取決於看帖者所使用的播放器,同樣的一段css設置,用不同的browser去看,有完全不一樣的效果(IE,FF,Chrome,etc.),若是想把播放器的效果也作為製帖的一部分,則使用default的audioTAG再加進css設置是不能辦到的,除非你不在乎播放器的顯現效果,而隻關注是否能用手機聽到。Wisi在快遞提供的兩個audioTAG樣本,隻能用FF去看才能看到綠色和紫色,用IE去看,則全是黑色。而且尺寸的設置也因播放器而異。要想真正實現播放器在不同的browser下有同樣的效果,則要用到自己設計的Javascript,在網上有現成的例子(包括JScode),但wxc不能使用JS。抄一段在Google看到的結論:
How to change the default color of the audio tag track?
Sorry, <Audio> in WinJS is an HTML5 control and currently there is no way to style by using CSS. Instead if you need a custom styled audio player, you could implement it by writing JavaScript code, or use some 3rd party library.