好得很程序员自学网

<tfoot draggable='sEl'></tfoot>

styluscsstooltips纯css工具提示_html/css_WEB-ITnose

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  

在页面中使用

 top  bottom  left  right  bottom-left  bottom-right  top-right  top-left  Small    Medium  Large     还可以这样提示  

新增背景颜色提示

 error  warning  info  top  

开发

$ npm run build$ npm run watch 

查看更多关于styluscsstooltips纯css工具提示_html/css_WEB-ITnose的详细内容...

  阅读:45次