TAG Jquery功能



div.tagsinput {
    background: #fff none repeat scroll 0 0;
    border: 1px solid #ccc;
    height: 100px;
    overflow-y: auto;
    padding: 5px;
    width: 300px;
}
.bootstrap-tagsinput {
    background-color: #ffffff;
    border: 2px solid #ebedef;
    border-radius: 6px;
    font-size: 0;
    margin-bottom: 18px;
    padding: 6px 1px 1px 6px;
    text-align: left;
}
.tagsinput-primary .tag {
    background-color: #1abc9c;
    color: #ffffff;
}
.bootstrap-tagsinput .tag {
    background-color: #ebedef;
    border-radius: 4px;
    color: #7b8996;
    cursor: pointer;
    display: inline-block;
    font-size: 13px;
    height: 27px;
    line-height: 15px;
    margin: 0 7px 7px 0;
    overflow: hidden;
    padding: 6px 21px;
    position: relative;
    transition: all 0.25s linear 0s;
    vertical-align: middle;
}
.bootstrap-tagsinput .tag > span::after {
    content: "x";
    font-family: "Flat-UI-Icons";
    line-height: 27px;
}
.bootstrap-tagsinput .tag > span {
    bottom: 0;
    color: #ffffff;
    cursor: pointer;
    font-size: 12px;
    opacity: 0;
    padding: 0 10px 0 0;
    position: absolute;
    right: 0;
    text-align: right;
    text-decoration: none;
    top: 0;
    transition: opacity 0.25s linear 0s;
    width: 100%;
    z-index: 2;
}	
.bootstrap-tagsinput input[type="text"] {
    background-color: transparent;
    border: medium none;
    box-shadow: none;
    color: #34495e;
    font-size: 14px;
    height: 29px;
    margin: 0;
    max-width: inherit;
    min-width: 80px;
    outline: medium none;
    padding: 0;
    vertical-align: top;
    width: auto !important;
}
.bootstrap-tagsinput .tag:hover {
    background-color: #16a085;
    color: #ffffff;
    padding-left: 14px;
    padding-right: 28px;
}
.bootstrap-tagsinput .tag:hover > span {
    filter: none;
    opacity: 1;
}		
.tagsinput-primary .tag {
    background-color: #1abc9c;
    color: #ffffff;
}	

JS代码

$(function (){
	var editor = $('#textarea1').wangEditor();
	$(".tagsinput").tagsinput();
});

效果图如上

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值