js代码
<script src="js/tippy.js"></script> <script type="text/javascript"> new Tippy('.tippy'); new Tippy('.tippy-right', { position: 'right', animation: 'fade' }) new Tippy('.tippy-scale', { position: 'top', animation: 'scale',arrow:'true' }) new Tippy('.tippy-arrow', { position: 'top', animation: 'scale',arrow:'true' }); new Tippy('.tippy-perspective', { position: 'top', animation: 'perspective',arrow:'true' }); new Tippy('.tippy-shift', { position: 'top', animation: 'shift',arrow:'true' }); new Tippy('.tippy-light', { position: 'top', animation: 'scale',arrow:'true','theme':'light' }) new Tippy('.tippy-honeybee', { position: 'top', animation: 'scale',arrow:'true',theme:'honeybee' }); new Tippy('#tooltip-with-my-template', { position:'bottom', html: '#my-template-id', arrow: true, animation: 'fade' }) </script>