摘要:纯工具提示查看效果演示安装使用在中使用常规使用方法直接在页面中引用我是提示在页面中使用工具提示工具提示工具提示还可以这样提示还可以这样提示新增背景颜色提示开发
tooltips
纯css工具提示 bubbles-tooltips 查看效果
演示npm install tooltips --save使用 在 gulp 中使用 gulp
var gulp = require("gulp");
var gutil = require("gulp-util");
var stylus = require("gulp-stylus");
var tooltips = require("tooltips");
var autoprefixer = require("gulp-autoprefixer");
var browserslist = ["Android 2.3", "Android >= 4", "Chrome >= 20", "Firefox >= 24", "Explorer >= 8", "iOS >= 6", "Opera >= 12", "Safari >= 6"];
gulp.src("./public/styl/*.styl")
.pipe(stylus({
use:[tooltips()],
compress:true
}))
.pipe(autoprefixer({
browsers: browserslist,
cascade: false
}).on("error",gutil.log))
.pipe(gulp.dest("./public/css"));
index.styl
@import "tooltips"
.banner{
height 140px
font-size 24px
}
常规使用方法
直接在页面中引用tooltips.min.css
tooltips
在页面中使用
新增背景颜色提示
开发
$ npm run build $ npm run watch
文章版权归作者所有,未经允许请勿转载,若此文章存在违规行为,您可以联系管理员删除。
转载请注明本文地址:https://www.ucloud.cn/yun/115193.html
摘要:纯工具提示查看效果演示安装使用在中使用常规使用方法直接在页面中引用我是提示在页面中使用工具提示工具提示工具提示还可以这样提示还可以这样提示新增背景颜色提示开发 tooltips showImg(https://segmentfault.com/img/remote/1460000006768818); showImg(https://segmentfault.com/img/remot...
摘要:纯工具提示查看效果演示安装使用在中使用常规使用方法直接在页面中引用我是提示在页面中使用工具提示工具提示工具提示还可以这样提示还可以这样提示新增背景颜色提示开发 tooltips showImg(https://segmentfault.com/img/remote/1460000006768818); showImg(https://segmentfault.com/img/remot...
阅读 2080·2021-11-23 09:51
阅读 3118·2021-11-22 09:34
阅读 1970·2021-10-14 09:43
阅读 3985·2021-09-08 09:36
阅读 3447·2019-08-30 12:57
阅读 2300·2019-08-30 12:44
阅读 2754·2019-08-29 17:15
阅读 3276·2019-08-29 16:08