java swing tooltips_tooltips弹出框制作

$(function() {

if ($.browser.msie && $.browser.version.substr(0,1)<7)

{

$('.tooltip').mouseover(function(){

$(this).children('span').show();

}).mouseout(function(){

$(this).children('span').hide();

})

}

$("#time").countDown(10);

});

.tooltip {

position: relative;

background: #eaeaea;

cursor: help;

display: inline-block;

text-decoration: none;

color: #222;

outline: none;

}

.tooltip span {

visibility: hidden;

position: absolute;

bottom: 30px;

left: 50%;

z-index: 999;

width: 230px;

margin-left: -127px;

padding: 10px;

border: 2px solid #ccc;

opacity: .9;

background-color: #ddd;

background-image: linear-gradient(rgba(255,255,255,.5), rgba(255,255,255,0));

border-radius: 4px;

box-shadow: 0 1px 2px rgba(0,0,0,.4), 0 1px 0 rgba(255,255,255,.5) inset;

text-shadow: 0 1px 0 rgba(255,255,255,.4);

}

.tooltip:hover {

border: 0; /* IE6 fix */

}

.tooltip:hover span {

visibility: visible;

}

.tooltip span:before,

.tooltip span:after {

content: "";

position: absolute;

z-index: 1000;

bottom: -7px;

left: 50%;

margin-left: -8px;

border-top: 8px solid #ddd;

border-left: 8px solid transparent;

border-right: 8px solid transparent;

border-bottom: 0;

}

.tooltip span:before {

border-top-color: #ccc;

bottom: -8px;

}

/**/

.all {

margin: 10px;

width:0px;

height:0px;

border-top: 8px solid #1c7ecf;

border-right: 8px solid #1c7ecf;

border-bottom: 8px solid #1c7ecf;

border-left: 8px solid #1c7ecf;

}

.left {

margin: 10px;

width:0px;

height:0px;

border-top: 8px solid transparent;

border-right: 8px solid #1c7ecf;

border-bottom: 8px solid transparent;

border-left: 8px solid transparent;

}

.right {

margin: 10px;

width:0px;

height:0px;

border-top: 8px solid transparent;

border-right: 8px solid transparent;

border-bottom: 8px solid transparent;

border-left: 8px solid #1c7ecf;

}

.top {

margin: 10px;

width:0px;

height:0px;

border-top: 8px solid transparent;

border-right: 8px solid transparent;

border-bottom: 8px solid #1c7ecf;

border-left: 8px solid transparent;

}

.bottom {

margin: 10px;

width:0px;

height:0px;

border-top: 8px solid #1c7ecf;

border-right: 8px solid transparent;

border-bottom: 8px solid transparent;

border-left: 8px solid transparent;

}

all
left
right
top
bottom

your text

Your custom description

517daa6c4dc3f32336ff11dc5f62e2e2.png

解析如下图:

3ef7a0d456da5504b208b2549d1ca16e.png

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值