От: | Михaил | ||
Дата: | 03.06.20 14:12 | ||
Оценка: |
<style>
.fitinsideframe {
max-width:100%;
max-height:100%;
}
</style>
<script>
function imgclicked(event) {
if(event.target.classList.contains('fitinsideframe')) {
event.target.classList.remove('fitinsideframe');
} else {
event.target.classList.add('fitinsideframe');
}
}
</script>
<img class="fitinsideframe" src="https://img.wallpapersafari.com/desktop/1920/1080/53/62/l6bruO.jpg" onclick="imgclicked(event)">