夥計們我正在嘗試並且無法在我的css按鈕上創建當前的視圖狀態......精靈有兩個狀態,一個關閉狀態...我想要過狀態也可以在頁面上目前的狀態正在查看....這裏是按鈕的CSS以及在html:創建一個css按鈕的當前狀態
CSS:
.inbox {
border: none;
width: 88px;
height: 26px;`enter code here`
background: url(images/v2images/default_inbox_BTN.png) no-repeat top left;
margin-left: 0px;
margin-right: 20px;
vertical-align: middle;
cursor:pointer;
}
.inbox:hover {
background-position: -88px 0;
}
HTML:
<input type="submit" value="" class="inbox" />
我認爲我只是創建一個當前狀態(.inbox:current),只是調整定位以匹配over狀態,不像懸停但沒有負值,但它沒有工作。
在此先感謝帥哥
「當前視圖狀態」是什麼意思? – 2013-02-21 00:04:25