IE8将不再支持CSS中的expression。

<p class="descriptionArea">
微软<strong>IE官方博客</strong>报道:IE8标准模式下将不再支持<strong>CSS的expression</strong>功能。
</p>
<div style="border: 1px dotted teal; float: right; text-align: center; font-size: 9pt; color: teal; text-indent: 0pt;">
<img src="http://images.cnblogs.com/cnblogs_com/justinyoung/common/cssLogo.gif" alt=""><br>
CSS expression</div>
<p>
今天从IE的官方blog中看到了这篇文章——<a href="http://blogs.msdn.com/ie/archive/2008/10/16/ending-expressions.aspx" title="Ending Expressions">《Ending Expressions》</a>。文章指出在IE8的标准模式下,将不再对CSS expression进行支持。也许有人会纷纷表示影响不大,因为有些人甚至都不知道什么是CSS的expression,也从来没有用过。但是,我感觉这个微软给予我们的信息,却是应该让人纷纷表示影响很大的。而这个信息就是——新一代的浏览器并不给保证优雅的向前兼容,必要的时候,会舍弃一些他们认为可以舍弃的内容。所以从今天开始,写网页的时候,请尽量的使用标准来写吧,一些hack和技巧还是减少使用吧。</p>
<p>IE8停止对CSS expression的支持,会不会使得以前使用了CSS expression的网页在IE8下无法使用呢?《Ending Expressions》这篇文章的最后给出了回答——</p>
<blockquote>
<p>
<strong>
Pages on my web site depend on CSS expressions. How does this affect me ?
</strong>
</p>
<p>
Thanks to IE8’s new layout engine, most expressions written to work around CSS 2.1 bugs and shortcomings should no longer be needed; we expect unsupported or incorrectly interpreted properties to work in a standard, interoperable way. For those expressions supporting more specific purposes, anything they do is inherently achievable using standard JavaScript, usually interoperably and at lower runtime costs. The specifics will of course depend on your application. Based on your feedback to this post, we may visit examples in future installments.
</p>
</blockquote>
<p>简单的说来就是——对不起,帮不了你,您老人家还是改成JavaScript或者其他办法实现吧。</p>
<p>不知道这会不会造成大批的网页从此只能在IE5-IE7上使用(从IE5才开始支持CSS expression)呢?也许吧。</p>
<p>你说,做个网页咋就那么难呢?既要考虑浏览器以前的版本,还要考虑浏览器以后的版本,最可恶的是,还不是就IE一种浏览器。</p>
<p>随着谷歌浏览器的杀入,浏览器市场现在真是无比的热闹呀。看来真的有必要考虑对浏览器实行"渐进增强支持"了(相关资料请看下方资料列表《Understanding Progressive Enhancement》一文)。</p>
<div class="downloadList">
<h3 class="list">本篇文章的相关链接</h3>
<ul class="uldownloadList">
<li><a href="http://www.cnblogs.com/JustinYoung/archive/2008/07/21/expression-behavior-in-CSS.html" title="expression和behavior">《实例讲解css中的行为:expression和behavior(附DEMO下载)》</a></li>
<li class="evenLi"><a href="http://blogs.msdn.com/ie/archive/2008/10/16/ending-expressions.aspx" title="Ending Expressions">《Ending Expressions》</a></li>
<li><a href="http://www.alistapart.com/articles/understandingprogressiveenhancement" title="Understanding Progressive Enhancement">《Understanding Progressive Enhancement》</a></li>
<li class="evenLi"><a href="http://www.blueidea.com/tech/web/2008/6226.asp" title="Ending Expressions">《Understanding Progressive Enhancement》中文翻译</a></li>
</ul>
</div>
<!--end: downloadList-->
<br><center>
alimama_pid="mm_10056409_242955_3624216"; alimama_titlecolor="0000FF"; alimama_descolor ="000000"; alimama_bgcolor="FFFFFF"; alimama_bordercolor="E6E6E6"; alimama_linkcolor="008000"; alimama_bottomcolor="FFFFFF"; alimama_anglesize="0"; alimama_bgpic="0"; alimama_icon="0"; alimama_sizecode="16"; alimama_width=658; alimama_height=60; alimama_type=2;

</center>
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值