This commit is contained in:
ken 2026-07-20 12:19:14 +08:00
parent 4fb6f239bd
commit e767981283
1 changed files with 23 additions and 8 deletions

View File

@ -76,14 +76,29 @@
$caption.after($controlplay);
}, 500);
$('.ba-banner-widget-0 .w-ad-banner__slide a')
.on('focus', function() {
$('.ba-banner-widget-0 img').css('position', 'relative');
})
.on('blur', function() {
$('.ba-banner-widget-0 img').css('position', '');
});
$('.ba-banner-widget-0 .w-ad-banner__slide a')
.on('focus', function() {
$('.ba-banner-widget-0 img').css({
'height' : 'auto',
'width' : '80%',
'margin' : 'auto',
'position' : 'relative',
'display' : 'flex',
'justify-content' : 'center',
'margin-top' : '1em'
});
})
.on('blur', function() {
$('.ba-banner-widget-0 img').css({
'height' : '',
'width' : '',
'margin' : '',
'position' : '',
'display' : '',
'justify-content' : '',
'margin-top' : ''
});
});
});
</script>
<style type="text/css">