Giter VIP home page Giter VIP logo

tooltips's Introduction

##ToolTips##

ToolTips 是一个在网页显示小提示的组件,它依赖于jQuery.

实现tooltips的技巧在于小箭头并没有用图片代替,而用css的两个border进行覆盖生成的;这样做的好处在于 可以减少合并图片的麻烦,以后自定义箭头位置和颜色只需要改一行css即可。

tooltips组件兼容所有的浏览器(IE6+)。

###技巧:###

生成箭头,对于非IE6的浏览器来说,使用border-color: transparent transparent #FFF7E3 transparent;

而对于IE6来说,如果需要透明,它的borderStyle也要修改为dashed: border-style: dashed dashed solid dashed;

tooltips's People

Contributors

andy12530 avatar

Watchers

James Cloos avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.