国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 開發 > CSS > 正文

基于HTML+CSS+JS實現增加刪除修改tab導航特效代碼

2020-03-24 16:04:15
字體:
來源:轉載
供稿:網友
.iden_top{width: 100%;border-bottom: 1px solid #ccc;height: 37px; line-height: 35px;}.iden_top ul li{height: 37px; line-height: 35px; cursor: pointer;width: auto;padding: 0px 10px; background-color: #eee;float: left;border-radius: 5px 5px 0px 0px;border: 1px solid #ccc;margin-bottom: -1px; }.iden_add{float: left;margin-top: -9px;cursor: pointer; display: inline-block;text-align: center;font-size: 25px;width: 40px; height:36px;color: #2B98FC; font-weight: bold; background-color: #eee; border: 1px solid #ccc;border-radius: 5px 5px 0px 0px;}.iden_top_button{ display: inline-block;width: 20px; height: 20px; background-image: url(../img/xiug.png);background-repeat: no-repeat;background-size: 100%;margin: 7px 0px 0px 5px;float: left;}.iden_top_dete{float: right; width: 20px; height: 20px; background-image: url(../img/close.png);background-repeat: no-repeat;background-size: 100%;margin: 7px 0px 0px 5px;float: right;}.iden_add_name{float: left; }.data_z_create_box{display: none; width: 600px; min-height: 200px; background-color: #fff; border: 1px solid #ccc; border-radius: 5px; position: absolute;z-index:44; top: 10%;left: 50%;margin-left: -300px;box-shadow: 0px 5px 10px #666}.data_z_create_box_center_quxiao{background-color: #ea5d5b;color: #fff;margin-right:10px; width: auto!important;padding: 0px 10px;}.data_z_create_box_center_quxiao:hover{background-color: #d2322d;}.data_tips{padding: 10px; width: 90%; margin: 0px auto; color: #a94442;background-color: #f2dede;border:1px solid #ebccd1;border-radius: 5px;}.data_input{height: auto;padding:0px 30px;}.data_input ul li{height: 50px; line-height: 50px;}.data_input_input input{text-indent: 10px; width:70%; height: 40px; line-height: 40px; border-radius: 5px; border: 1px solid #ccc;}.data_input_tips{margin-left: 5%;display: none;}.data_z_create_box_top_title{margin-left: 20px;font-weight: bold;}.shua{margin-top: 20px;float: left;}.shua span{display: inline-block;width: 95%; float: right;}.data_state_buttonl_tips{color: #4CAE4C;font-weight: bold;display: none;}JS:$(document).ready(function(e) {var $_div = $(" div 確認要刪除此應用標識嗎? /div ")var $_span1 = $(" span 應用標識: /span span input type='text' placeholder='' /span ")$(".iden_top ul li:eq(0)").css({"background-color": "#fff","border-bottom": "1px solid #fff"}).children().removeClass("iden_top_dete");$(".iden_top ul li:eq(0)").children(".iden_add_name").addClass("ll")$(".iden_top_button").click(function() {$("#create_z").show()$(".data_z_create_box").show(300)$(".data_z_create_box_top_title").html("修改應用標識")$(".create_z_create_box_center_baocun").show();$(".create_z_create_box_center_queding").hide();$(".data_input ul li div").remove();$(".data_input ul li").append($_span1)$(".data_input_input input").val($(this).siblings(".iden_add_name").text())$(".create_z_create_box_center_quxiao").click(function() {$("#create_z").hide()$(".data_z_create_box").hide(300)$_span1.remove()$(".create_z_create_box_center_baocun").click(function() {$("#create_z").hide()$(".data_z_create_box").hide(300)$(".ll").text($(this).parent().siblings().children().find("input").val())$_span1.remove()$(".create_z_create_box_top_close").click(function() {$("#create_z").hide()$(".data_z_create_box").hide(300)$_span1.remove()var a = 2;$(".iden_add").click(function() {var clis = $(".iden_top ul li").length;if(clis = 4) {var $_li = $(" li p 應用標識 span " + a + " /span /p span /span div /div /li $(".iden_top ul").append($_li);$_li.css({"background-color": "#fff","border-bottom": "1px solid #fff"}).children("div").addClass("iden_top_dete");$_li.children("span").addClass("iden_top_button")$_li.siblings().css({"background-color": "#eee","border-bottom": "1px solid #ccc"}).children("div").removeClass("iden_top_dete");$_li.siblings().children("span").removeClass("iden_top_button");$_li.children(".iden_add_name").addClass("ll");$_li.siblings().children(".iden_add_name").removeClass("ll");$(".iden_top_dete").click(function() {$(this).parent($_li).addClass("qq")$("#create_z").show()$(".data_z_create_box").show(300)$(".data_z_create_box_top_title").html("提示")$(".create_z_create_box_center_baocun").hide();$(".create_z_create_box_center_queding").show();$(".data_input ul li span").remove();$(".data_input ul li").append($_div)$(".create_z_create_box_center_quxiao").click(function() {$("#create_z").hide()$(".data_z_create_box").hide(300)$_div.remove()$(".iden_top ul li").removeClass("qq")$(".create_z_create_box_center_queding").click(function() {$(".qq").remove()$("#create_z").hide()$(".data_z_create_box").hide(300)$_div.remove()$(".iden_top ul li:eq(0)").css({"background-color": "#fff","border-bottom": "1px solid #fff"}).children("span").addClass("iden_top_button")$(".iden_top_button").click(function() {$("#create_z").show()$(".data_z_create_box").show(300)$(".data_z_create_box_top_title").html("修改應用標識")$(".create_z_create_box_center_baocun").show();$(".create_z_create_box_center_queding").hide();$(".data_input ul li div").remove();$(".data_input ul li").append($_span1)$(".data_input_input input").val($(this).siblings(".iden_add_name").text())$(".create_z_create_box_center_quxiao").click(function() {$("#create_z").hide()$(".data_z_create_box").hide(300)$_span1.remove()$(".create_z_create_box_center_baocun").click(function() {$("#create_z").hide()$(".data_z_create_box").hide(300)$(".ll").text($(this).parent().siblings().children().find("input").val())$_span1.remove()$(".create_z_create_box_top_close").click(function() {$("#create_z").hide()$(".data_z_create_box").hide(300)$_span1.remove()clis++;$(".iden_top ul li").click(function() {$(this).css({"background-color": "#fff","border-bottom": "1px solid #fff"}).children("div").addClass("iden_top_dete");$(this).children("span").addClass("iden_top_button")$(this).siblings().css({"background-color": "#eee","border-bottom": "1px solid #ccc"}).children("div").removeClass("iden_top_dete");$(this).siblings().children("span").removeClass("iden_top_button");$(".iden_top ul li:eq(0)").children("div").removeClass("iden_top_dete");$(this).children(".iden_add_name").addClass("ll");$(this).siblings().children(".iden_add_name").removeClass("ll");})以上所述是小編給大家介紹的基于HTML+CSS+JS實現增加刪除修改tab導航特效代碼,希望對大家有所幫助,如果大家有任何疑問請給我留言,小編會及時回復大家的。在此也非常感謝大家對phpstudy網站的支持!更多編程語言

鄭重聲明:本文版權歸原作者所有,轉載文章僅為傳播更多信息之目的,如作者信息標記有誤,請第一時間聯系我們修改或刪除,多謝。

發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 芜湖县| 海淀区| 德州市| 西峡县| 古丈县| 巴里| 共和县| 深泽县| 铁岭县| 土默特右旗| 凤凰县| 汝阳县| 南通市| 滨海县| 八宿县| 屏山县| 平利县| 民权县| 布尔津县| 左贡县| 刚察县| 光泽县| 泸西县| 辽宁省| 阿勒泰市| 上杭县| 鄂托克前旗| 繁昌县| 靖安县| 无锡市| 佳木斯市| 沈阳市| 古蔺县| 鹿邑县| 锡林郭勒盟| 府谷县| 葵青区| 天峻县| 中宁县| 晴隆县| 海兴县|