简体   繁体   English

我应该使用HTML5和CSS3吗?

[英]Should i be using HTML5 and CSS3?

I'm someone who wants to be up on the latest web technologies but also appreciate that alot people still use IE6/7/8. 我是一个想要了解最新网络技术的人,但也很欣赏很多人仍然使用IE6 / 7/8。 Is it a waste of code/time if half of it wont be displayed on most browsers? 如果在大多数浏览器中显示一半的代码/时间,是否浪费代码/时间? Is it just a case of using different style sheets, or just use one style sheet and if a browser doesnt support text-shadow, then screw it, they can see it without the nice effects. 它只是一个使用不同样式表的情况,或只是使用一个样式表,如果浏览器不支持文本阴影,然后拧它,他们可以看到它没有很好的效果。 What are peoples thoughts? 人们的想法是什么?

It depends on your userbase. 这取决于您的用户群。 I am an intranet developer and my company still uses IE6(!!!) so we have no choice but to support IE6. 我是一名内部网开发者,我的公司仍然使用IE6(!!!)所以我们别无选择,只能支持IE6。 I also develop some public facing websites and we use Analytical tools to see the which Browser is being used more and ignore ones which are less used. 我还开发了一些面向公众的网站,我们使用分析工具来查看更多使用的浏览器,忽略那些使用较少的浏览器。 in this case IE6 was the least used Browser. 在这种情况下,IE6是最少使用的浏览器。

I won't go for HTML5 and CSS3 till Internet Explorer 9 or Firefox 4 (absolute release, not alpha or beta) is released, because these two browsers make up the most of web traffic (afaik, correct me if I'm wrong) and using html5 or css3 will be a big loss. 我不会选择HTML5和CSS3,直到Internet Explorer 9或Firefox 4(绝对版本,而不是alpha版或beta版)发布,因为这两个浏览器占据了网络流量的最大化(如果我错了,请纠正我)并使用html5或css3将是一个很大的损失。

And yeah, it depends on your userbase too. 是的,这也取决于您的用户群。

I'm developing a small-business oriented online app and decided to support only IE8, FF and Chrome. 我正在开发一个面向小型企业的在线应用程序,并决定只支持IE8,FF和Chrome。 I also went for one stylesheet that degrades nicely (text-shadow, rounded corners). 我还找了一个很好地降级的样式表(文本阴影,圆角)。 IE8 users will see square corners but it doesn't make the site unusable in any way. IE8用户将看到方角,但它不会使网站以任何方式无法使用。

I just think that the cost of making everything look perfect in all browsers (and maintaining it!) is much higher than the benefits. 我只是认为让所有浏览器中的所有东西看起来都很完美(并保持它!)的成本要高得多。

The above also applies to HTML5 IMHO - unless you know that vast majority of your users will have an HTML5-compatible browser there's no need to invest in it right now. 以上也适用于HTML5恕我直言 - 除非您知道绝大多数用户将拥有与HTML5兼容的浏览器,否则现在无需投资。 Unless the whole point of your site is to use one of the newest features. 除非您网站的重点是使用最新功能之一。

Just tell yourself what problem of your users you are actually solving and solve that one. 只需告诉自己您实际解决的用户问题是什么,并解决该问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM