微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

balloon.css

编程之家收集整理的这个编程导航主要介绍了balloon.css编程之家,现在分享给大家,也给大家做个参考。

balloon.css 介绍

Balloon.css 纯css3简单实用的tooltips工具提示效果库,Balloon.css 可以让你不用借助 JavaScript 给元素添加提示,而且只需要几行 css 代码。 

npm安装

npm install balloon-css

使用data-balloon-pos的属性与所述值中的一个:up,down,left,right,up-left,up-right,down-left或down-right:

<button data-balloon="Whats up!" data-balloon-pos="up">Hover me!</button>

<button data-balloon="Whats up!" data-balloon-pos="left">Hover me!</button>

<button data-balloon="Whats up!" data-balloon-pos="right">Hover me!</button>

<button data-balloon="Whats up!" data-balloon-pos="down">Hover me!</button>

<button data-balloon="Whats up!" data-balloon-pos="up-left">Hover me!</button>

<button data-balloon="Whats up!" data-balloon-pos="up-right">Hover me!</button>

<button data-balloon="Whats up!" data-balloon-pos="down-left">Hover me!</button>

<button data-balloon="Whats up!" data-balloon-pos="down-right">Hover me!</button>

网站地址:https://kazzkiq.github.io/balloon.css/

GitHub:https://github.com/kazzkiq/balloon.css

网站描述:纯 CSS 实现的简单提示插件

balloon.css

官方网站:https://kazzkiq.github.io/balloon.css/

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。