如何在Firefox中构建我的网站?

时间:2021-01-21 07:07:39

Here's an easy question. How do I configure Visual Studio 2008 to build my webpage in a certain browser? I really want to build in all 5 well-known browsers (IE, Firefox, Chrome, Opera, and Safari), but right now I am having to right click the actual html files and open them in different browsers. In dreamweaver, there is a simple dropdownlist for this...what does visual studio have?

这是一个简单的问题。如何配置Visual Studio 2008以在特定浏览器中构建我的网页?我真的想在所有5个知名浏览器(IE,Firefox,Chrome,Opera和Safari)中构建,但是现在我必须右键单击实际的html文件并在不同的浏览器中打开它们。在Dreamweaver中,有一个简单的下拉列表...视觉工作室有什么?

5 个解决方案

#1


Firsty, you don't build your site for each different web browser. You build one website that's standards-compliant and will work in all browsers.

第一,您不为每个不同的Web浏览器构建您的站点。您构建了一个符合标准的网站,并且可以在所有浏览器中使用。

Having said that, you will probably have to use some non-standard "hacks" to get Internet Explorer to behave as the other browsers do because older versions of IE don't follow web standards.

话虽如此,您可能不得不使用一些非标准的“黑客”来使Internet Explorer像其他浏览器一样运行,因为IE的旧版本不符合Web标准。

You should setup your website in IIS using IIS Manager. Then you can run your website in whatever browser you like using a URL like http://localhost/YourWebsite/

您应该使用IIS管理器在IIS中设置您的网站。然后,您可以使用http:// localhost / YourWebsite /等URL在任何您喜欢的浏览器中运行您的网站

Here's an article on creating a website in IIS: http://support.microsoft.com/kb/323972

这是一篇关于在IIS中创建网站的文章:http://support.microsoft.com/kb/323972

Alternatively if you want to use the web server that's built into Visual Studio you can right-click one of the pages in your project, select Browse with.. and use the Browse With dialog to set the default browser. Once you've done this you can run your site in the default browser by pressing F5.

或者,如果要使用Visual Studio中内置的Web服务器,可以右键单击项目中的一个页面,选择“浏览方式”,然后使用“浏览方式”对话框设置默认浏览器。完成此操作后,您可以按F5在默认浏览器中运行您的站点。

#2


See this page for switching the default browser. As far as a dropdown to easily switch like Dreamweaver, there may be a plugin.

请参阅此页面以切换默认浏览器。对于像Dreamweaver一样容易切换的下拉列表,可能会有一个插件。

#3


Right Click on an Aspx page, choose "Browse With...", and set Firefox as Default.

右键单击Aspx页面,选择“Browse With ...”,并将Firefox设置为Default。

#4


I like the site browsershots.org, submit your URL and it shows how it looks in different browsers on different operating systems. After a minute or 2 I got back 42 different shots.... good to know I look good on FireFox 3.0.4 on MAC OS X 10.6 :).

我喜欢网站browsershots.org,提交你的网址,它显示了它在不同操作系统上的不同浏览器中的外观。一两分钟后,我又回到了42个不同的镜头......很高兴知道我在MAC OS X 10.6上的FireFox 3.0.4上看起来很棒。

#5


How to change the default browser to debug in Visual Studio

如何在Visual Studio中更改默认浏览器以进行调试

#1


Firsty, you don't build your site for each different web browser. You build one website that's standards-compliant and will work in all browsers.

第一,您不为每个不同的Web浏览器构建您的站点。您构建了一个符合标准的网站,并且可以在所有浏览器中使用。

Having said that, you will probably have to use some non-standard "hacks" to get Internet Explorer to behave as the other browsers do because older versions of IE don't follow web standards.

话虽如此,您可能不得不使用一些非标准的“黑客”来使Internet Explorer像其他浏览器一样运行,因为IE的旧版本不符合Web标准。

You should setup your website in IIS using IIS Manager. Then you can run your website in whatever browser you like using a URL like http://localhost/YourWebsite/

您应该使用IIS管理器在IIS中设置您的网站。然后,您可以使用http:// localhost / YourWebsite /等URL在任何您喜欢的浏览器中运行您的网站

Here's an article on creating a website in IIS: http://support.microsoft.com/kb/323972

这是一篇关于在IIS中创建网站的文章:http://support.microsoft.com/kb/323972

Alternatively if you want to use the web server that's built into Visual Studio you can right-click one of the pages in your project, select Browse with.. and use the Browse With dialog to set the default browser. Once you've done this you can run your site in the default browser by pressing F5.

或者,如果要使用Visual Studio中内置的Web服务器,可以右键单击项目中的一个页面,选择“浏览方式”,然后使用“浏览方式”对话框设置默认浏览器。完成此操作后,您可以按F5在默认浏览器中运行您的站点。

#2


See this page for switching the default browser. As far as a dropdown to easily switch like Dreamweaver, there may be a plugin.

请参阅此页面以切换默认浏览器。对于像Dreamweaver一样容易切换的下拉列表,可能会有一个插件。

#3


Right Click on an Aspx page, choose "Browse With...", and set Firefox as Default.

右键单击Aspx页面,选择“Browse With ...”,并将Firefox设置为Default。

#4


I like the site browsershots.org, submit your URL and it shows how it looks in different browsers on different operating systems. After a minute or 2 I got back 42 different shots.... good to know I look good on FireFox 3.0.4 on MAC OS X 10.6 :).

我喜欢网站browsershots.org,提交你的网址,它显示了它在不同操作系统上的不同浏览器中的外观。一两分钟后,我又回到了42个不同的镜头......很高兴知道我在MAC OS X 10.6上的FireFox 3.0.4上看起来很棒。

#5


How to change the default browser to debug in Visual Studio

如何在Visual Studio中更改默认浏览器以进行调试