很少有功能不适用于HTML5 [英] Few features not working for HTML5

查看:116
本文介绍了很少有功能不适用于HTML5的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我创建了一个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的支持糟透了-目前.

请参考此比较表:
http://en.wikipedia.org/wiki/Comparison_of_layout_engines_%28HTML5%29 [ ^ ],
http://en.wikipedia.org/wiki/HTML5 [
I don''t think you are missing anything. It''s just the support of HTML5 by browsers sucks — at this time.

Please refer to this comparison chart:
http://en.wikipedia.org/wiki/Comparison_of_layout_engines_%28HTML5%29[^],
http://en.wikipedia.org/wiki/HTML5[^].

—SA


您可能要检查您的Firefox和Chrome版本是否支持这些功能.
此线程 [ ^ ]可能会提供一些其他信息.
You might want to check if your versions of Firefox and Chrome support these features.
This thread[^] might provide some additional information.


这篇关于很少有功能不适用于HTML5的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆