以下是IE7中新支持的属性:
min-height,max-height,min-width,max-width
这个hack还可以使最大高度兼容IE6,你可以举一反三:
{height:350px;overflow:hidden;}
以下是IE7中新支持的属性选择符:
精确属性匹配 [=] : 只有当属性完全匹配指定值的时候, 则会应用该css定义.
存在匹配 []: 只要存在这样的属性, 则应用该css定义.
连字号匹配[|=]: 使用连字号匹配的css定义. 例如: <span abc=”en-us”>dddd</span> 它就能应用 <style>[abc|=”en”] {color:red;}</style>
前缀匹配[^=]: 只有是指定属性以指定字符开始, 则应用该css定义.
子字符串匹配[*=]: 只有指定属性存在指定字符, 则应用该css定义.
后缀匹配[$=]: 只有指定属性以指定字符结尾, 则应用该css定义.
空白分隔匹配[~=]: 是指使用空格或空白间隔的属性值, 则应用该css定义. 例如: <span abc=”ddd here abc”>dddd</span> 它就能应用<style>[abc~=”here”]{color:red;}</style>
这里有几个例子:
<HTML>
<HEAD>
<TITLE>CSS3: Attribute Selectors</TITLE>
<style>
.test {color: green;display: none;}
.fail {color: red;}
[special] {display: block;}
[attr=”Value”] {display: block;}
[attr^=”B”] {display: block;}
[attr$=”n”] {display: block;}
[attr*=”ai”] {display: block;}
[attr|=”en”] {display: block;}
[attr~=”Two”] {display: block;}
[class=”fail”] {display: none;}
</style>
</HEAD>
<BODY>
<h1>CSS3: Attribute Selectors</h1>
<h2>Attribute Selector Tests</h2>
<div class=”test” special>1. Test for [] (Existence) succeeded.</div>
<div class=”test” attr=”Value”>2. Test for [=] (Value) succeeded.</div>
<div class=”test” attr=”Blue”>3. Test for [^=] (Prefix) succeeded.</div>
<div class=”test” attr=”Green”>4. Test for [$=] (Suffix) succeeded.</div>
<div class=”test” attr=”Contains”>5. Test for [*=] (Substring) succeeded.</div>
<div class=”test” attr=”en-us”>6. Test for [|=] (Hyphen) succeeded.</div>
<div class=”test” attr=”One Two Three”>7. Test for [~=] (Token) succeeded.</div>
<div class=”fail”>Attribute selector tests failed.</div>
</BODY>
</HTML>
还找到了这一点资料:https://www.jb51.net/CSS/20080108/css_2890.html
min-height,max-height,min-width,max-width
这个hack还可以使最大高度兼容IE6,你可以举一反三:
{height:350px;overflow:hidden;}
以下是IE7中新支持的属性选择符:
精确属性匹配 [=] : 只有当属性完全匹配指定值的时候, 则会应用该css定义.
存在匹配 []: 只要存在这样的属性, 则应用该css定义.
连字号匹配[|=]: 使用连字号匹配的css定义. 例如: <span abc=”en-us”>dddd</span> 它就能应用 <style>[abc|=”en”] {color:red;}</style>
前缀匹配[^=]: 只有是指定属性以指定字符开始, 则应用该css定义.
子字符串匹配[*=]: 只有指定属性存在指定字符, 则应用该css定义.
后缀匹配[$=]: 只有指定属性以指定字符结尾, 则应用该css定义.
空白分隔匹配[~=]: 是指使用空格或空白间隔的属性值, 则应用该css定义. 例如: <span abc=”ddd here abc”>dddd</span> 它就能应用<style>[abc~=”here”]{color:red;}</style>
这里有几个例子:
<HTML>
<HEAD>
<TITLE>CSS3: Attribute Selectors</TITLE>
<style>
.test {color: green;display: none;}
.fail {color: red;}
[special] {display: block;}
[attr=”Value”] {display: block;}
[attr^=”B”] {display: block;}
[attr$=”n”] {display: block;}
[attr*=”ai”] {display: block;}
[attr|=”en”] {display: block;}
[attr~=”Two”] {display: block;}
[class=”fail”] {display: none;}
</style>
</HEAD>
<BODY>
<h1>CSS3: Attribute Selectors</h1>
<h2>Attribute Selector Tests</h2>
<div class=”test” special>1. Test for [] (Existence) succeeded.</div>
<div class=”test” attr=”Value”>2. Test for [=] (Value) succeeded.</div>
<div class=”test” attr=”Blue”>3. Test for [^=] (Prefix) succeeded.</div>
<div class=”test” attr=”Green”>4. Test for [$=] (Suffix) succeeded.</div>
<div class=”test” attr=”Contains”>5. Test for [*=] (Substring) succeeded.</div>
<div class=”test” attr=”en-us”>6. Test for [|=] (Hyphen) succeeded.</div>
<div class=”test” attr=”One Two Three”>7. Test for [~=] (Token) succeeded.</div>
<div class=”fail”>Attribute selector tests failed.</div>
</BODY>
</HTML>
还找到了这一点资料:https://www.jb51.net/CSS/20080108/css_2890.html