​长兴网站推广【长兴官网推广哪个效果好】长兴百度竞价推广托管、长兴百度优化推广外包、长兴全网霸屏推广多少钱、长兴网络推广一年大概多少费-网络推广-网站建设【企业网站制作|网页设计】- 高端网站建设 - 书生商友信息科技-

全国热线:400-111-6878

网站建设推广专家

​长兴网站推广【长兴官网推广哪个效果好】长兴百度竞价推广托管、长兴百度优化推广外包、长兴全网霸屏推广多少钱、长兴网络推广一年大概多少费

发表日期: 2020-07-21 13:25:20 浏览次数:152

长兴网站推广【长兴官网推广哪个效果好】长兴百度竞价推广托管、长兴百度优化推广外包、长兴全网霸屏推广多少钱、长兴网络推广一年大概多少费


长兴县,隶属于浙江省湖州市,地处浙江省北部,长江三角洲杭嘉湖平原,太湖西南岸,与该省安吉县、湖州市吴兴区和安徽省广德市、江苏的宜兴市接壤,苏浙皖三省交界。介于北纬30°43′—31°11′,东经119°33′—120°06′之间,总面积1430平方千米。

长兴古称长城。春秋吴越争霸时期(前514—前495年),吴王阖闾派弟夫概在今雉城东南两里处筑城,作为夫概王邑。因城狭长,故名长城,已有2500多年的历史。 

截至2018年,长兴县辖4个街道、9个镇、2个乡 ,户籍总人口63.64万人,实现地区生产总值(GDP)609.78亿元,其中,第一产业增加值33.39亿元,第二产业增加值300.41亿元,第三产业增加值275.97亿元,三次产业占比为5.47:49.27:45.26,按户籍人口计算,人均生产总值为95961元,按平均汇率折算为14501美元。  2019全国营商环境百强县。第二批节水型社会建设达标县(区)。2019中国旅游百强县市。


jQuery表单复选框与单选框美化

工具/原料

  • adobe dreamweaver

方法/步骤

  1. 新建html文档。

    jQuery表单复选框与单选框美化
  2. 书写hmtl代码。

    <h3>多选:</h3>

    <div id="test"></div>

    <span>结果:</span>

    <input type="text" id="testValue"/>

    <h3>单选:</h3>

    <div id="test2"></div>

    <span>结果:</span>

    <input type="text" id="testValue2"/>

    <h3>已选:</h3>

    <div id="test3"></div>

    <span>结果:</span>

    <input type="text" id="testValue3"/>

    <h3>关于选择类型(checkStyle):</h3>

    <div style="height: 25px"><b style="margin-right: 10px;"><span>yx(圆心):</span></b><span><i class="iconfont icon-xuanzhong"></i></span><span><i class="iconfont icon-weixuanzhong1"></i></span></div>

    <div style="height: 25px"><b style="margin-right: 10px;"><span>yg(圆钩):</span></b><span><i class="iconfont icon-xuanzhong1"></i></span><span><i class="iconfont icon-weixuanzhong1"></i></span></div>

    <div style="height: 25px"><b style="margin-right: 10px;"><span>fx(方心):</span></b><span><i class="iconfont icon-CombinedShapeCopy"></i></span><span><i class="iconfont icon-weixuanzhong"></i></span></div>

    <div style="height: 25px"><b style="margin-right: 10px;"><span>fg(方钩):</span></b><span><i class="iconfont icon-xuanzhong3"></i></span><span><i class="iconfont icon-weixuanzhong"></i></span></div>

    jQuery表单复选框与单选框美化
  3. 书写css代码。

    .selectShow { height: 40px; }

    .selectShow ul { list-style: none; margin: 0px; padding: 0px; }

    .selectShow ul .cleanItem { border: solid thin #AFCBCF; font-size: 14px; cursor: pointer; background-color: #AFCBCF; width: 100px; }

    .selectShow ul .cleanItem:hover { background-color: #AFCBBF; }

    .selectShow ul li { min-width: 100px; text-align: center; float: left; height: 30px; line-height: 30px; }

    .selectShow ul li i { font-size: 20px; padding: 0px 5px; }

    .selectShow ul .selectItem { border: solid thin #AFCBCF; font-size: 14px; margin-left: 10px; cursor: pointer; }

    .selectShow ul .selectItem:hover { border: solid thin #6699FF; }

    .selectShow ul .selectItem i { float: right; margin-left: 5px; }

    .selectList { height: 40px; }

    .selectList ul { list-style: none; margin: 0px; padding: 0px; }

    .selectList ul li { float: left; margin-left: 10px; line-height: 40px; cursor: pointer; }

    .selectList ul li i { margin-right: 3px; }

    .iconfont { font-family: "iconfont" !important; font-size: 16px; font-style: normal; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

    .icon-shanchu:before { content: "\e61c"; }

    .icon-xuanzhong:before { content: "\e64a"; }

    .icon-CombinedShapeCopy:before { content: "\e604"; }

    .icon-xuanzhong3:before { content: "\e525"; }

    .icon-weixuanzhong:before { content: "\e626"; }

    .icon-xuanzhong1:before { content: "\e617"; }

    .icon-qingchu:before { content: "\e630"; }

    .icon-weixuanzhong1:before { content: "\e602"; }

    jQuery表单复选框与单选框美化
  4. 书写并添加js代码。

    <script src="js/jquery.min.js"></script>

    <script src="js/multiselect.js"></script>

    <script >

        $("#test").multiselectInit({

            "selectData":[{"colId":1,"colValue":"苹果"},{"colId":2,"colValue":"香蕉"},{"colId":3,"colValue":"菠萝"},{"colId":4,"colValue":"西瓜"},{"colId":5,"colValue":"甘蔗"}],

            "isMulti":true,//是否多选

            "inputId":"testValue",//输入框的id

            "checkStyle":"fg"//选择的样式

        });

        $("#test2").multiselectInit({

            "selectData":[{"colId":1,"colValue":"苹果"},{"colId":2,"colValue":"香蕉"},{"colId":3,"colValue":"菠萝"},{"colId":4,"colValue":"西瓜"},{"colId":5,"colValue":"甘蔗"}],

            "isMulti":false,//是否多选

            "inputId":"testValue2",//输入框的id

            "checkStyle":"yx"//选择的样式

        });

        $("#test3").multiselectInit({

            "selectData":[{"colId":1,"colValue":"苹果"},{"colId":2,"colValue":"香蕉"},{"colId":3,"colValue":"菠萝"},{"colId":4,"colValue":"西瓜"},{"colId":5,"colValue":"甘蔗"}],

            "isSelectData":[{"colId":1,"colValue":"苹果"},{"colId":2,"colValue":"香蕉"},{"colId":3,"colValue":"菠萝"}],

            "isMulti":true,//是否多选

            "inputId":"testValue3",//输入框的id

            "checkStyle":"fx"//选择的样式

        });

    </script>

    jQuery表单复选框与单选框美化
  5. 书写multiselect.jsjs代码。

    <script>

    $.fn.extend({

       "multiselectInit":function(opt){

           if(typeof opt != "object"){

               alert("参数出错!");

               return;

           }

           var mid = $(this).attr("id");

           if(mid==null||mid==""){

               alert("要设定一个id!");

               return;

           }

           if(!opt.selectData instanceof Array){

                alert("selectData参数错误");

                return;

           }

           $.each(multiselectTools.getInitOption(mid), function (key, value) {

               if (opt[key] == null) {

                   opt[key] = value;

               }

           });

           if(opt.isSelectData!=""){

               if(!opt.isSelectData instanceof Array){

                   alert("isSelectData参数错误,数据类型应该为数组");

                   return;

               }

               if(opt.isSelectData.length>1&&!opt.isMulti){

                    alert("单选模式设置错误!");

                    return;

               }

           }

           multiselectTools.initWithUI(opt);

           multiselectEvent.initCleanEvent(opt);

           multiselectEvent.initClickEvent(opt);

           multiselectEvent.initDeleteEvent(opt);

       }

    });

    var multiselectTools={

        "checkStyleArray":{

            "yx":{

                "check":"icon-xuanzhong",

                "uncheck":"icon-weixuanzhong1"

            },

            "yg":{

                "check":"icon-xuanzhong1",

                "uncheck":"icon-weixuanzhong1"

            },

            "fx":{

                "check":"icon-CombinedShapeCopy",

                "uncheck":"icon-weixuanzhong"

            },

            "fg":{

                "check":"icon-xuanzhong3",

                "uncheck":"icon-weixuanzhong"

            }

        },

        "initWithUI":function(opt){

            var appendStr ="";

            appendStr +="<div class='selectShow'>";

            appendStr +="<ul>";

            appendStr +="<li class='cleanItem'><i class='iconfont icon-qingchu'></i></li>";

            appendStr +="</ul>";

            appendStr +="</div>";

            appendStr +="<div class='selectList'>";

            appendStr +="<ul>";

            appendStr +="</ul>";

            appendStr +="</div>";

            $("#"+opt.mid).html(appendStr);

            var selectData = opt.selectData;

            $.each(selectData,function (i,itemObj) {

                $("#"+opt.mid+" .selectList ul").append("<li code='"+itemObj.colId+"' showStr='"+itemObj.colValue+"'><i class='iconfont "+multiselectTools.checkStyleArray[opt.checkStyle].uncheck+"'></i>"+itemObj.colValue+"</li>");

            });

            if(opt.isSelectData!=""){

                $.each(opt.isSelectData,function(i,itemObj){

                    multiselectTools.addChecked(itemObj.colId,itemObj.colValue,opt);

                    multiselectTools.toChecked(opt,itemObj.colId);

                });

                multiselectTools.setValueInput(opt.mid,opt.inputId);

            }

        },

        "toChecked":function(opt,value){

            var selectObj = $("#"+opt.mid+" .selectList ul li[code='"+value+"']");

            selectObj.attr("isCheck","true");

            selectObj.find("i").attr("class","iconfont "+multiselectTools.checkStyleArray[opt.checkStyle].check);

        },

        "toUnChecked":function(opt,value){

            var selectObj = $("#"+opt.mid+" .selectList ul li[code='"+value+"']");

            selectObj.removeAttr("isCheck");

            selectObj.find("i").attr("class","iconfont "+multiselectTools.checkStyleArray[opt.checkStyle].uncheck);

        },

        "getInitOption":function(mid){

            var option =  {

                "mid":mid,

                "isSelectData":"",

                "selectData":"",

                "isMulti":true,

                "inputId":"",

                "checkStyle":"fg"

            };

            return option;

        },

        "addChecked":function(value,showStr,opt){

            $("#"+opt.mid+" .selectShow ul").append("<li class='selectItem' code='"+value+"'>"+showStr+"<i class='iconfont icon-shanchu'></i></li>");

            multiselectEvent.initDeleteEvent(opt);

        },

        "removeChecked":function(value,opt){

            $("#"+opt.mid+" .selectShow ul .selectItem[code='"+value+"']").remove();

        },

        "getSelectValue":function(mid){

            var str="";

            var checkedObjs =  $("#"+mid+"  .selectList ul li[isCheck='true']");

            $.each(checkedObjs,function (i,itemObj) {

                str+=$(itemObj).attr("code")+",";

            });

            str  = str.substr(0,str.length-1);

            return str;

        },

        "setValueInput":function(mid,inputId){

            var str = multiselectTools.getSelectValue(mid);

            if(inputId!=""&&multiselectTools.fondExitById(inputId)) {

                $("#" + inputId).val(str);

            }

        },

        "cleanAll":function(opt) {

            $("#"+opt.mid+" .selectShow ul .selectItem").remove();

            var objs = $("#" + opt.mid + " .selectList ul li");

            objs.removeAttr("isCheck");

            objs.find("i").attr("class","iconfont "+multiselectTools.checkStyleArray[opt.checkStyle].uncheck);

            if(opt.inputId!=""&&multiselectTools.fondExitById(opt.inputId)){

                $("#"+opt.inputId).val("");

            }

        },

        "fondExitById":function(idStr){

            return  $("#"+idStr).length>0;

        }

    };

    var multiselectEvent ={

        "initClickEvent":function(opt){

           $("#"+opt.mid+" .selectList ul li").mousedown(function () {

               var isCheck = $(this).attr("isCheck");

               var  value=$(this).attr("code");

               var showStr = $(this).attr("showStr");

               if(isCheck){

                   multiselectTools.toUnChecked(opt,value);

                   multiselectTools.removeChecked(value,opt);

               }else{

                   if(!opt.isMulti){

                       multiselectTools.cleanAll(opt);

                   }

                   multiselectTools.toChecked(opt,value);

                   multiselectTools.addChecked(value,showStr,opt);

               }

               multiselectTools.setValueInput(opt.mid,opt.inputId);

           });

        },

        "initCleanEvent":function(opt){

            $("#"+opt.mid+" .selectShow ul .cleanItem").mousedown(function(){

                multiselectTools.cleanAll(opt);

            });

        },

        "initDeleteEvent":function(opt){

            $("#"+opt.mid+" .selectShow ul .selectItem i").mousedown(function(){

                var deleteObj = $(this).parent();

                var code = deleteObj.attr("code");

                deleteObj.remove();

                if(code!=null){

                    multiselectTools.toUnChecked(opt,code);

                }

                multiselectTools.setValueInput(opt.mid,opt.inputId);

            });

        }

    };

    </script>

    jQuery表单复选框与单选框美化
  6. 代码整体结构。

    jQuery表单复选框与单选框美化
  7. 查看效果。

    jQuery表单复选框与单选框美化



7 月 20 日消息,据国外媒体报道,今年众多行业都受到了影响,需求、供给都有不同程度的影响,电子产品市场也不例外,这势必也会影响到屏幕等各种零部件的需求。


目前智能手机普遍采用 OLED 屏幕,电视等也在采用,研究机构就预计,今年全球 OLED 屏幕的出货量,将低于此前的预期,已经下调了出货量预期。


下调全球 OLED 面板出货量的这一研究机构,在 4 月份是预计今年 OLED 面板的出货量将达到 5.12 亿片,高于去年的 4.71 亿片,同比将会增长 8.7%。




长兴网站推广长兴官网推广哪个效果好长兴百度竞价推广托管、长兴百度优化推广外包、长兴全网霸屏推广多少钱、长兴网络推广一年大概多少费



上一条:​慈溪网站推广【慈溪官网推广哪个效果好】慈溪百度竞价推广托管、慈溪百度优化推广外包、慈溪全网霸屏推广多少钱、慈溪网络推广一年大概多少费
下一条:​平阳网站搭建【平阳网站建设】平阳企业建站、平阳建立网站、平阳网页设计多少钱、平阳做网站的公司有哪些、平阳网站制作公司哪个好、平阳网站申请【平阳官网建设费用】
网站制作
小程序制作
网站优化
网站开发
400电话办理
网络推广
网站建设
网店装修
微信公众号开发
网页设计
网络公司
域名企业邮箱
服务器空间
网站案例报价
百科问答
编辑排版美工
App软件开发
百度推广
代运营托管
logo设计
网络全网营销
网站备案
网站定制
小程序开发公司
首页
电话
立即预约