国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 開發(fā) > CSS > 正文

IE7新支持的CSS屬性和屬性選擇符

2024-07-11 08:20:54
字體:
供稿:網(wǎng)友
以下是ie7中新支持的屬性:
min-height,max-height,min-width,max-width

這個hack還可以使最大高度兼容ie6,你可以舉一反三:
{height:350px;overflow:hidden;}

以下是ie7中新支持的屬性選擇符:

精確屬性匹配 [=] : 只有當(dāng)屬性完全匹配指定值的時候, 則會應(yīng)用該css定義.
存在匹配 []: 只要存在這樣的屬性, 則應(yīng)用該css定義.
連字號匹配[|=]: 使用連字號匹配的css定義. 例如: <span abc=”en-us”>dddd</span> 它就能應(yīng)用 <style>[abc|=”en”] {color:red;}</style>
前綴匹配[^=]: 只有是指定屬性以指定字符開始, 則應(yīng)用該css定義.
子字符串匹配[*=]: 只有指定屬性存在指定字符, 則應(yīng)用該css定義.
后綴匹配[$=]: 只有指定屬性以指定字符結(jié)尾, 則應(yīng)用該css定義.
空白分隔匹配[~=]: 是指使用空格或空白間隔的屬性值, 則應(yīng)用該css定義. 例如: <span abc=”ddd here abc”>dddd</span> 它就能應(yīng)用<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>

還找到了這一點(diǎn)資料:http://m.survivalescaperooms.com/css/20080108/css_2890.html
發(fā)表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發(fā)表
主站蜘蛛池模板: 庄河市| 广德县| 翁源县| 台北县| 绥阳县| 瑞金市| 茌平县| 大埔县| 泰兴市| 深水埗区| 长泰县| 和平县| 炎陵县| 易门县| 宣化县| 余江县| 陕西省| 南京市| 阳春市| 泰顺县| 黎平县| 刚察县| 泽库县| 永新县| 铁岭市| 昌平区| 黔西| 定边县| 且末县| 六盘水市| 淳化县| 绥阳县| 太湖县| 泰顺县| 会宁县| 七台河市| 邓州市| 渭南市| 南召县| 肇源县| 泗阳县|