html5在Visual Studio 2010 Ultimate中不起作用 [英] html5 not working in visual studio 2010 ultimate

查看:110
本文介绍了html5在Visual Studio 2010 Ultimate中不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

hi ..
我已将html5视频标签添加到我的asp.net,但是它不起作用
并且在视频内容中出现了一个大的X,而不是视频.
但是当我在记事本创建的其他html文件中使用相同的标记并运行它时,一切正常,我在(IE9-firefox 8-chrome-safari-opera)中对其进行了测试,但无法正常工作,请帮帮我.

hi..
i had added html5 video tag to my asp.net but it does not work
and in stead of video a big X appears in the video content.
but when i use the same tag in other html file created by notepad and run it ,every thing work correctly ,i tested it in (IE9-firefox 8-chrome-safari-opera) and not working please help me.

推荐答案

请针对HTML5支持,继续检查浏览器的布局引擎: http://en.wikipedia.org/wiki/Trident_%28layout_engine%29 [ ^ ])仍然很糟糕:-).

有一种解决方法:您可以更改Visual Studio使用的默认Web浏览器.

您可以在许多地方找到操作方法:
http://www.hanselman.com/blog/HowToChangeTheDefaultBrowserInVisualStudioProgrammaticallyWithPowerShellAndPossfullyPokeYourselfIn /www.hanselman.com/blog/HowToChangeTheDefaultBrowserInVisualStudioProgrammaticallyWithPowerShellAndPossfullyPokeYourselfInTheEye.aspx"target =" _ blank"title =" New Window> ^ ],
http://stevenharman.net/blog/存档/2007/08/02/setting-a-default-browser-for-visual-studio.aspx [ http://bit.ly/zK0Pa6 [ ^ ].

这完全解决了在开发过程中呈现正确功能的问题,但是请考虑是否确实需要它.首先,这可能会导致代码调试器出现问题(没什么大不了的,它只能中断JavaScript调试,如果正确调整,它仍然可以与其他一些浏览器一起使用).无论如何,这不是一个大问题,因为您可以随时返回IE.

更重要的是,如果IE不支持这些功能,您是否真的需要这些HTML5功能?您的用户使用IE怎么样?无论如何,您决定.

—SA
Please, keep checking the browser''s layout engine against HTML5 support: http://en.wikipedia.org/wiki/Comparison_of_layout_engines_%28HTML5%29[^].

From the table shown in the above article you will see that the Trident engine (http://en.wikipedia.org/wiki/Trident_%28layout_engine%29[^]) used in IE still sucks :-).

There is one work-around: you can change the default Web browser used by Visual Studio.

You can find out how to do it in many places:
http://www.hanselman.com/blog/HowToChangeTheDefaultBrowserInVisualStudioProgrammaticallyWithPowerShellAndPossiblyPokeYourselfInTheEye.aspx[^],
http://stevenharman.net/blog/archive/2007/08/02/setting-a-default-browser-for-visual-studio.aspx[^],
http://bit.ly/zK0Pa6[^].

This totally solves the problem of rendering right features during development, but think if you really need it. First, this can create a problem with the code debugger (not a big deal, it can only disrupt JavaScript debugging which still can be used with some other browsers if tuned properly). Not a big problem anyway as you can get back to IE at any time.

More importantly, do you really need those HTML5 features if IE does not support them? How about your users using IE? Anyway, you decide.

—SA


遗憾的是,微软仍然不会实施开放标准,将您带入Google的怀抱.
https://tools.google.com/dlpage/webmmf [
Sadly, microsoft still won''t implement open standards driving you into the arms of google...

https://tools.google.com/dlpage/webmmf[^]

Good luck!


如果在手动编写代码时可以正常工作,请将生成的代码与您手动编写的代码进行比较.另外,请确保链接有效,并且视频是由受支持的编解码器编码的.
If it works when you write the code by hand, then compare the generated code with the code you wrote by hand. Also, ensure that the link is valid and that the video is encoded by a supported codec.


这篇关于html5在Visual Studio 2010 Ultimate中不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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