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

请您先登陆,再发跟帖!