1
실제로 스택에서 찾은이 코드가 있지만 가져 가면 팝업 이미지 아래에 텍스트를 추가하는 방법을 찾을 수 없습니다.jQuery 팝업 이미지 (텍스트가있는 경우)
<style type="text/css">
.popover1 {top: 10px; left: 10px; position: relative;}
.big_img1 {z-index: 999; height: 250px; position: absolute;}
</style>
<div id="hover-div">
<img class="popover1" style="height: 100px;" src="http://transolid.com/assets/images/colors/previews/prev_sorrento_coast.jpg" />
</div>
<script>
$('.popover1').on({
mousemove: function(e) {
$(this).next('img').css({
top: e.pageY - 260,
left: e.pageX + -120
});
},
mouseenter: function() {
var big = $('<img />', {'class': 'big_img1', src: this.src});
$(this).after(big);
},
mouseleave: function() {
$('.big_img1').remove();
}
});
</script>
나는 팝업의 하단에 텍스트를 추가해야합니다
여기에 코드입니다. 이것을 할 수있는 방법이 있습니까?
감사
내 설치 프로그램과 함께 작동 시키려면 CSS를 조정해야했지만 훌륭하게 작동했습니다. 도와 주셔서 감사합니다. 바라기를 이것은 미래에도 다른 사람을 도울 것입니다! –