tag: css 的日志列表

200727/05

IE下的注释也会影响布局

Published by bugx 15:03:44 五月 27th,2007 in web种种.

以前只听说这个IE的注释在布局上的影响,但是没有碰到。今天在用fckeditor新版本的时候,的确让我郁闷了一回。修改了FCK的初始化的Create方法,使FCK只初始化但不输出,这个就可以用在模板替换的方式了,当我打开页面的时候发现页面布局变了,Siderbar下沉了,页面全部靠左了,检查了一下也没找到问题,我用Firefox打开页面,表现的很好,于是我就想到了IE的一些特性。

然后在页面中查看源码,发现在页面的头部会自动产生一段FCKeditor的注释,去掉后就显示正常了。呵呵,以前TABLE布局就没有碰到这个问题。真是很难想到的BUG。

向Blogool开炮:7f2f8798-0509-40ca-b5ee-65b6fa316bb9

IE  CSS  fckeditor  

已被阅读216次 2 Comments 0 Trackbacks

200628/11

MSDN中IE7对CSS支持的说明

Published by bugx 19:19:17 十一月 28th,2006 in 前端实现-CSS.

以下内容摘自MSDN

Cascading Style Sheet Compatibility in Internet Explorer 7

Markus Mielke
Dave Massy
Microsoft Corporation

January 31, 2006

Updated July 7, 2006

Introduction

Internet Explorer 7 contains a number of improvements to cascading style sheet (CSS) parsing and rendering over IE6. These improvements are aimed at improving the consistency of how Internet Explorer interprets cascading style sheets as recommended by the W3C in order that developers have a reliable set of functionality on which to rely.

In some cases a few of these changes may have the effect of making existing content render in ways that are not compatible with IE6. This is often seen with elements moving to a different area of the page or overlapping content when viewed in IE7. These issues are most common on content that is using particular CSS constructs (often know as "hacks" or filters) to work around bugs that existed under the strict mode in IE6. In this article we'll discuss why pages might be broken due to updated CSS support and the best ways to address the issues that result from it.


点击阅读...

IE7,CSS  

已被阅读347次 1 Comments 0 Trackbacks

200621/11

IE7对css选择器的改进

Published by nowa 16:31:58 十一月 21th,2006 in 前端实现-CSS.
今天稍稍看了一下IE7对css选择器的改进,出乎我的想象,竟然修复了大部分bug。

1、对伪类的支持。IE6和更低的版本对于伪类的支持仅限于a标签,诸如“:hover”、“:active”、“:focus”之类的伪类理论上是应该适用于所有元素的,但是IE6和更低版本抛弃了它们。这次IE7有选择地支持了“:hover”。

Quotes
div:hover {
    background-color: #B7B7B7;
}


诸位可以试试。

2、对子选择器的支持。现在在IE7里你可以使用如下的定义:

点击阅读...

css  ie7  选择器  

已被阅读215次 1 Comments 0 Trackbacks