降级为html的Silverlight [英] Silverlight that degrades to html

查看:109
本文介绍了降级为html的Silverlight的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我对完全使用Silverlight创建网站感兴趣(出于个人原因),但我不希望那些还没有Silverlight(很多)的人必须安装插件才能查看我的网站。我倾向于的解决方案是从网站的纯html / css版本开始,并仅向已经安装该版本的人展示silverlight版本。

I am interested in creating a website entirely in silverlight (personal reasons) but I don't want people who don't yet have silverlight (a good many) to have to install a plugin just to view my site. The solution I am leaning towards is to start with a flat html/css version of the site and present the silverlight version only to people who already have it installed.

我的问题是:

我的推理被误导了。是否有更好的方法来解决此问题。避免在两个版本的网站上重复内容的最佳方法是什么。

Is my reasoning misguided. Is there a better way to go about this. And what is the best way to avoid having to duplicate content across both versions of the site.

推荐答案

首先,为没有Silverlight插件的用户提供下层体验是一个非常好的做法。它还将为您的网站提供更好的SEO。如果您有能力使用Silverlight 3和ASP.NET,那么.NET RIA服务对于在Silverlight和ASP .NET中重用代码是非常有吸引力的选择。 Ria服务和教程可在此处获得:

First, providing a downlevel experience for users without Silverlight plugin is a very good practice. It will also provide better SEO for your site. If you can afford to use Silverlight 3 and ASP.NET then .NET RIA services is a very attractive option for reusing code across Silverlight and ASP .NET. Ria services, and tutorials are available here:

http://code.msdn.microsoft.com/RiaServices

这篇关于降级为html的Silverlight的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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