我一直在試圖讓自定義複選框與我的網站一起工作。但是,我遇到了一個令人迷惑的問題,那就是我的HTML的特定部分。HTML/CSS自定義複選框按鈕圖像問題
這裏是我當前的代碼: HTML
<div class="quicklinks_login">
<label for="cookieuser" style="padding-left: 7px;"><input type='checkbox' name='cookieuser' value='1' tabindex='10' id='cb_cookieuser_navbar' accesskey='c' /> Remember Me</label>
</div>
CSS
input[type="checkbox"] + label,
label > input[type="checkbox"] {
background: url("../images/override/state_off.png") no-repeat scroll 0 0 transparent;
cursor: pointer;
}
現在,你可以從我的CSS看,我有希望被稱呼兩種模式。標籤> input [type =「checkbox」]'pattern'應將應用於我的HTML(據FireBug說)。但是,自定義圖像不會與複選框一起顯示。
總結起來,我的問題很簡單:爲什麼'pattern'label > input[type="checkbox"]
不適用於我的HTML?