html5的audioTag出來的performance顯現完全取決於看帖者所使用的播放器,

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.
 

 

所有跟帖: 

城裏, 高山 等幾個網站,顯示是一樣的, 紫色 棕色, 客棧 還是黑色,幾種方法 我都試了,幾個顏色也試了, 仍然, -弓尒- 給 弓尒 發送悄悄話 弓尒 的博客首頁 (365 bytes) () 09/18/2015 postreply 12:11:29

顏色和大小設定完全取決於看帖者所使用的播放器, -10PM- 給 10PM 發送悄悄話 10PM 的博客首頁 (181 bytes) () 09/18/2015 postreply 16:27:13

不盡然, at least for now, -弓尒- 給 弓尒 發送悄悄話 弓尒 的博客首頁 (0 bytes) () 09/18/2015 postreply 17:42:41

請用FF和IE看看你的帖,和wisi的帖, -10PM- 給 10PM 發送悄悄話 10PM 的博客首頁 (247 bytes) () 09/18/2015 postreply 18:22:33

chrome, IE, fox, color, size, all the same -弓尒- 給 弓尒 發送悄悄話 弓尒 的博客首頁 (0 bytes) () 09/18/2015 postreply 18:43:58

請您先登陸,再發跟帖!