问题描述
我创建了一个HTML5网页,其中"slideDown"(jQuery样式:))显示的跨度很小.但是我在设置动画方面遇到问题.所以我尝试了以下方法.
1.注释了整个DOCTYPE标签
I have created a HTML5 webpage in which few spans appears by ''slideDown''(the jQuery style :)). But i''m having problems with animating it. So i tried the following.
1. Commented the entire DOCTYPE tag
<!--<!DOCTYPE html>-->
<html xmlns="http://www.w3.org/1999/xhtml">
结果:它仅在IE 9中按预期工作,但在Firefox和chrome中丢失了.但是添加的音频标签似乎无法正常工作. CSS3也不起作用(我在2个跨度中添加了旋转样式)
2.取消注释DOCTYPE标记
Result: it''s working as expected, only in IE 9, but are missing in firefox and chrome. But audio tag added not seemed to be working. Also CSS3 was also not working (i had a rotate style added to 2 of the spans)
2. Uncommented the DOCTYPE tag
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
结果:音频标签现在可以工作,但是根本看不到slideDown效果或跨度!所有这一切仅在IE9中发生,firefox和chrome似乎太远了.
3.再次评论了整个DOCTYPE标记
Result: Audio tag is now working, but not able to see the slideDown effect or the span at all!. All this is happening only in IE9, firefox and chrome seems to be too far.
3. Commented the entire DOCTYPE tag again
<!--<!DOCTYPE html>-->
<html xmlns="http://www.w3.org/1999/xhtml">
结果:音频和动画(包括CSS3样式)都可以在IE中使用,但仍不能在firefox和chrome中使用.
是否有人可以建议我是否错过了任何内容,或者是否需要添加特定内容才能使HTML5和CSS3协同工作?
Result: Both Audio and animations including CSS3 styles are working in IE, but still not in firefox and chrome.
Can anyone please advice if i''ve missed out anything or anything specifically needs to be added for HTML5 and CSS3 to work together?
推荐答案
这篇关于很少有功能不适用于HTML5的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!