首页上一页 1  下一页尾页 1 条记录 1/1页
        关于CSS3添加语音功的问题
                 	
                        发表在其他语言图书答疑区
                        2015-04-12                                                
                    		
                                                                            	
                        
                        
                    
                    
                    	是否精华
                    	是
                    	否
                    
                    
                    
                            版块置顶:
                            是
                            否
                        
                    
                                           看书了还是步明白的一个问题!CSS3 Speech Module语音模块怎么使用!在W3C哪里看了一下也是步懂!是不是本来都这样?
这个是W3C的代码:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title></title>
<style type="text/css">
#speech-sample {
voice-family: male;
border: 1px solid #666;
padding:5px;
font-size:14px;
}
#voice-volume {
-xv-voice-volume: x-soft;
-xv-voice-balance: right;
}
#voice-balance { -xv-voice-balance: left; }
#speech-cue { cue-after: url(images/ding.wav); }
#voice-rate { -xv-voice-rate: x-slow; }
#voice-family { voice-family: female; }
#voice-pitch { -xv-voice-pitch: x-low; }
#speech-speak { speak: spell-out; }
</style>
</head>
<body>
<div>
<div id="speech-sample">
<span id="voice-volume">voice-volume、</span>
<span id="voice-balance">voice-balance、</span>
<span id="voice-rate">voice-rate、</span>
<span id="voice-family">voice-family、</span>
<span id="voice-pitch">voice-pitch、</span>
<span id="speech-speak">speak</span> 和
<span id="speech-cue">cue-after。</span>
</div>
</div>
</body>
</html>
运行的以后是这样的
voice-volume、 voice-balance、 voice-rate、 voice-family、 voice-pitch、 speak 和 cue-after。
怎么一点效果都没有??到底怎么用呢??
        
                
        	
        
        
    这个是W3C的代码:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title></title>
<style type="text/css">
#speech-sample {
voice-family: male;
border: 1px solid #666;
padding:5px;
font-size:14px;
}
#voice-volume {
-xv-voice-volume: x-soft;
-xv-voice-balance: right;
}
#voice-balance { -xv-voice-balance: left; }
#speech-cue { cue-after: url(images/ding.wav); }
#voice-rate { -xv-voice-rate: x-slow; }
#voice-family { voice-family: female; }
#voice-pitch { -xv-voice-pitch: x-low; }
#speech-speak { speak: spell-out; }
</style>
</head>
<body>
<div>
<div id="speech-sample">
<span id="voice-volume">voice-volume、</span>
<span id="voice-balance">voice-balance、</span>
<span id="voice-rate">voice-rate、</span>
<span id="voice-family">voice-family、</span>
<span id="voice-pitch">voice-pitch、</span>
<span id="speech-speak">speak</span> 和
<span id="speech-cue">cue-after。</span>
</div>
</div>
</body>
</html>
运行的以后是这样的
voice-volume、 voice-balance、 voice-rate、 voice-family、 voice-pitch、 speak 和 cue-after。
怎么一点效果都没有??到底怎么用呢??

 
	
                                                 VIP会员
VIP会员 购物车
购物车

 私信
                         私信 
                     发表新帖
发表新帖 立即签到
立即签到 
        		  
        		 
         		 关注
关注
                  回复
 回复 支持(
                	支持( 反对(
                    反对( 
                    
 
                







 
                     
                     
					 
						 
						 
						 
						