0
나 자신을위한 웹 사이트를 디자인하고 있습니다. 내가 가져 가거나 각 svg 원에 mouseenter가 다른 툴팁 이미지를 보여 주어야 할 때 나는 3 개의 SVG 원을 만들었습니다. 시도했지만 작동하지 않습니다. 푸시 클래스를 사용하여 화면의 오른쪽으로 세 가지 색을 모두 밀어 넣어 여백을 남기면 materialcss 프레임 워크를 사용하고 있습니다. svg circle에 마우스를 올리면 각 요소에 대한 툴팁이 표시됩니다.
$('svg[data-toggle="tooltip"]').tooltip({
animated: 'fade',
placement: 'bottom',
html: true
});
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<div class="row">
<div class="priority-order">
<div class="col l1 m1 s1 push-l9">
<svg height="100" width="100" data-toggle="tooltip" title="<img src='images/4%20projects%202.jpg' style='height:100px;width:100px' />">
<circle cx="50" cy="50" r="10" stroke-width="3" fill="#f0584f" />
</svg>
</div>
<div class="col l1 m1 s1 push-l9">
<svg height="100" width="100">
<circle cx="50" cy="50" r="10" stroke-width="3" fill="#3166ff" />
</svg>
</div>
<div class="col l1 m1 s1 push-l9">
<svg height="100" width="100">
<circle cx="50" cy="50" r="10" stroke-width="3" fill="#5fb336" />
</svg>
</div>
</div>
</div>