Кнопка не нажимается
<button class="Button" onclick="Up()"><img src="up.png" width="50px" height="50px" alt="Up"></button>
.Button { border: none; background-color: transparent; cursor: pointer; } почему когда нажимаешь на нее она не работает как кнопка? она визуально должна нажаться, а тут никаких действий не происходи! |
Цитата:
<style>
.Button {
border: none;
background-color: transparent;
cursor: pointer;
}
</style>
<button class="Button"><img src="http://javascript.ru/forum/images/smilies/smile.gif" width="50px" height="50px" alt="Up"></button>
|
блин! а у меня почему-то не нажимается!( у меня мозила 4-ая
|
EventPromo,
с CSS совсем тяжело? ну напишите класс для button:active какойнить и будет "нажиматься"
<style>
.Button {
border: none;
background-color: transparent;
cursor: pointer;
padding:0px;
}
.Button:active{
padding-top:2px;
padding-left:2px;
}
</style>
<button class="Button"><img src="http://javascript.ru/forum/images/smilies/smile.gif" width="50px" height="50px" alt="Up"></button>
|
| Часовой пояс GMT +3, время: 11:34. |