国产探花免费观看_亚洲丰满少妇自慰呻吟_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://www.survivalescaperooms.com/css/20080108/css_2890.html
發(fā)表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發(fā)表
主站蜘蛛池模板: 洛宁县| 皋兰县| 榕江县| 沙雅县| 宜宾县| 文成县| 瑞安市| 阳江市| 深州市| 临洮县| 乐东| 驻马店市| 台南县| 陕西省| 萨迦县| 新野县| 揭东县| 来凤县| 霍林郭勒市| 麻城市| 普定县| 大连市| 松江区| 绥芬河市| 曲松县| 安龙县| 长治市| 盐亭县| 新巴尔虎右旗| 旌德县| 南昌市| 海林市| 巴彦淖尔市| 阿坝县| 佛山市| 五寨县| 衡阳县| 盈江县| 葵青区| 平陆县| 阜康市|