嗨我需要一些CSS幫助我有一些擴展,當我將鼠標懸停在他們,但它同時Css的幫助?懸停圖片
<style>
.box
{
width: 750px;
height: 1000px;
border:1px solid green;
}
.enlarge-onhover {
width: 125px;
height: 125px;
}
.enlarge-onhover:hover {
width: 225px;
height: 225px;
}
</style>
我不希望它這樣做,我想它推動一切的圖片重疊其餘的圖像,並擴大左鍵單擊而不是懸停
嘗試使用'float'標籤?如'float:right'。在我看來,你應該爲此使用JQuery。 – TheGeekZn
將它改爲點擊動作需要javascript,否則你可以使用活動的僞類,但我會推薦jQuery來簡化和控制 – Pete