bootstrap拖拽布局生成网页html代码
代码语言:html
所属分类:布局界面
代码描述:bootstrap拖拽布局生成网页html代码,只要轻轻拖动一下,一个网页布局就完成了,非常方便
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html> <head> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> <link type="text/css" rel="stylesheet" href="//repo.bfw.wiki/bfwrepo/css/bootstrap.3.3.4.css"> <style> body { padding-top:50px; padding-bottom: 40px; margin-left:200px; -webkit-transition: margin 500ms ease; -moz-transition: margin 500ms ease; -ms-transition: margin 500ms ease; -o-transition: margin 500ms ease; transition: margin 500ms ease; } .navbar-layoutit .btn-donate {padding: 0 0 0 10px;} .navbar-layoutit .btn-donate form { margin:0;} @media (max-width: 980px) { /* Enable use of floated navbar text */ .navbar-text.pull-right { float: none; padding-left: 5px; padding-right: 5px; } } @media (max-width: 979px) { .navbar-fixed-top { position:fixed; } } .navbar-layoutit #menu-layoutit { float:left;} .navbar-layoutit { min-height: 32px; padding: 5px 0 0 5px; } .navbar-layoutit .navbar-brand {width:180px; color:#fff; padding: 0; margin:0 5px; } .navbar-layoutit .navbar-brand img {float:left; margin:2px 10px 0 0; } .navbar-layoutit .navbar-brand .label { position:relative; left:10px; top:-3px; font-weight:normal; font-size:9px; background:#666; -webkit-box-shadow: inset 1px 1px 3px rgba(0, 0, 0, 0.7); -moz-box-shadow: inset 1px 1px 3px rgba(0, 0, 0, 0.7); box-shadow: inset 1px 1px 3px rgba(0, 0, 0, 0.7); } .edit .demo { margin-left:0px; margin-top:10px; padding:30px 15px 15px; border: 1px solid #DDDDDD; border-radius: 4px; position:relative; word-wrap: break-word;} .edit .demo:after { background-color: #F5F5F5; border: 1px solid #DDDDDD; border-radius: 4px 0 4px 0; color: #9DA0A4; content: "Container"; font-size: 12px; font-weight: bold; left: -1px; padding: 3px 7px; position: absolute; top: -1px; } .container { width:auto; margin:0 0px;} .sidebar-nav { position:fixed; width:180px; left:0px; bottom:0; top:32px; background:#ccc; padding: 10px; z-index:10; -webkit-transition: all 500ms ease; -moz-transition: all 500ms ease; -ms-transition: all 500ms ease; -o-transition: all 500ms ease; transition: all 500ms ease; } .sidebar-nav .nav-header { cursor:pointer; font-size:14px; color:#fff; text-shadow:0 1px 0 rgba(0, 0, 0, 0.3); text-transform:uppercase; font-weight:bold;} .sidebar-nav .nav-header span.label { font-size:10px; /*padding-bottom:0;*/ position:relative; top:-1px; } .sidebar-nav .nav-header i.glyphicon-question-sign { color:#000; text-shadow:0 1px 0 #ddd;} .sidebar-nav .nav-header .popover {color:#999; text-shadow:none;} .popover-info {position:relative;} .popover-info .popover {display:none; top: -12.5px; left:15px; } .popover-info:hover .popover {display:block; opacity:1; width:400px;} .popover-info:hover .popover .arrow {top:23px;} .sidebar-nav .accordion-group { border:none; } .boxes {} .sidebar-nav li { line-height:28px; margin-bottom:3px; } .sidebar-nav li .lyrow { margin-bottom:5px;} .sidebar-nav .box { line-height:26px; width:160px; height:26px; } .sidebar-nav .preview { display: block; color:#666; font-size:12px; line-height:26px;} .sidebar-nav .preview input { width:105px; padding:0 10px; background:#bbb; font-size:10px; color:#999; line-height:20px; height:20px; position:relative; top:-1px; } .sidebar-nav .view { display: none; } .sidebar-nav .remove, .sidebar-nav .configuration { display: none; } .sidebar-nav .boxes { display:none;} .demo .preview { display: none; } .demo .box .view { display: block; padding-top:30px;} .ui-draggable-dragging .view { display:block;} /*.demo .ui-sortable-placeholder { outline: 5px dotted #ddd; visibility: visible!Important; border-radius: 4px; }*/ .ui-sortable-placeholder { outline: 1px dashed #ddd;visibility: visible!Important; border-radius: 4px;} .edit .drag { position: absolute; top: 0;right: 0; cursor: pointer; } .edit .drag i {color:#000; text-shadow:0 1px 0 #ddd;} .box,.lyrow { position:relative;} .edit .demo .lyrow .drag { top:5px; right:80px; z-index:10; } .edit .demo .column .box .drag { top:5px; } .edit .demo .column .box .configuration {position: absolute; top: 3px; right: 140px;white-space:nowrap; } .edit .demo .column .box .configuration:hover { z-index:1001;} .edit .demo .column .navbar-fixed-top {top: 33px; left: 180px;} .demo .column .navbar-fixed-top {top: 33px;} .edit .demo .column .navbar-fixed-bottom { left: 180px;} .edit .demo .remove { position: absolute; top: 5px; right: 5px; z-index:10; } .demo .configuration { filter: alpha(opacity=0); opacity: 0; -webkit-transition: all 500ms ease; -moz-transition: all 500ms ease; -ms-transition: all 500ms ease; -o-transition: all 500ms ease; transition: all 500ms ease; } .demo .drag, .demo .remove { filter: alpha(opacity=20); opacity: 0.2; -webkit-transition: all 500ms ease; -moz-transition: all 500ms ease; -ms-transition: all 500ms ease; -o-transition: all 500ms ease; transition: all 500ms ease; } .demo .lyrow:hover > .drag, .demo .lyrow:hover > .configuration, .demo .lyrow:hover > .remove, .demo .box:hover .drag, .demo .box:hover .configuration, .demo .box:hover .remove { filter: alpha(opacity=100); opacity: 1; } .edit .demo .row:before { background-color: #F5F5F5; border: 1px solid #DDDDDD; border-radius: 4px 0 4px 0; color: #9DA0A4; content: "Row"; font-size: 12px; font-weight: bold; left: -1px; line-height:2; padding: 3px 7px; position: absolute; top: -1px; } .demo .row { background-color: #F5F5F5; -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; -webkit-box-shadow: inset 0 1px 13px rgba(0, 0, 0, 0.1); -moz-box-shadow: inset 0 1px 13px rgba(0, 0, 0, 0.1); box-shadow: inset 0 1px 13px rgba(0, 0, 0, 0.1); border: 1px solid #DDDDDD; border-radius: 4px 4px 4px 4px; margin: 15px 0; position: relative; padding: 25px 14px 0; } .edit .column:after { background-color: #F5F5F5; border: 1px solid #DDDDDD; border-radius: 4px 0 4px 0; color: #9DA0A4; content: "Column"; font-size: 12px; font-weight: bold; left: -1px; padding: 3px 7px; position: absolute; top: -1px; } .column { background-color: #FFFFFF; border: 1px solid #DDDDDD; border-radius: 4px 4px 4px 4px; margin: 15px 0; padding: 39px 19px 24px; position: relative; } /* preview */ body.devpreview { margin-left:0px;} .devpreview .sidebar-nav { left:-200px; -webkit-transition: all 0ms ease; -moz-transition: all 0ms ease; -ms-transition: all 0ms ease; -o-transition: all 0ms ease; transition: all 0ms ease; } .devpreview .drag, .devpreview .configuration, .devpreview .remove { display:none !Important; } .sourcepreview .column, .sourcepreview .row, .sourcepreview .demo .box { margin:0px 0; padding:0px; background:none; border:none; -webkit-box-shadow: inset 0 0px 0px rgba(0, 0, 0, 0.00); -moz-box-shadow: inset 0 0px 0px rgba(0, 0, 0, 0.00); box-shadow: inset 0 0px 0px rgba(0, 0, 0, 0.00); } .devpreview .demo .box, .devpreview .demo .row { padding-top:0; background:none; } .devpreview .demo .column { padding-top:19px; padding-bottom:19px; } #download-layout { display: none } #feedbackModal textarea, #downloadModal textarea { width:100%;height:280px;resize: none;-moz-box-sizing: border-box;-webkit-box-sizing: border-box;box-sizing: border-box; } #feedbackModal input { width:515px; } #feedbackModal input.modal-error-field, #feedbackModal textarea.modal-error-field { border: 1px solid red; } a.language-selected { font-style: italic; font-weight: bold; } .modal-body { padding-bottom:0; } .modal-footer { margin-top:0; } </style> <script type="text/javascript" src="//repo.bfw.wiki/bfwrepo/js/jquery.2.11.js"></script> <script type="text/javascript" src="//repo.bfw.wiki/bfwrepo/js/jquery-ui-1.10.3.min.js"></script> <script type="text/javascript" src="//repo.bfw.wiki/bfwrepo/js/bootstrap-3.3.4.js"></script> <script type="text/javascript" src="//repo.bfw.wiki/bfwrepo/js/jquery.ui.touch-punch.js"></script> <script type="text/javascript" src="//repo.bfw.wiki/bfwrepo/js/jquery.htmlclean.js"></script> <script type="text/javascript"> function handleSaveLayout() { var e = $(".demo").html(); if (e != window.demoHtml) { saveLayout(); window.demoHtml = e }} function handleJsIds() { handleModalIds(); handleAccordionIds(); handleCarouselIds(); handleTabsIds()} function handleAccordionIds() { var e = $(".demo #myAccordion"); var t = randomNumber(); var n = "panel-"+t; var r; e.attr("id", n); e.find(".panel").each(function(e, t) { r = "panel-element-"+randomNumber(); $(t).find(".panel-title").each(function(e, t) { $(t).attr("data-parent", "#"+n); $(t).attr("href", "#"+r)}); $(t).find(".panel-collapse").each(function(e, t) { $(t).attr("id", r)})})} function handleCarouselIds() { var e = $(".demo #myCarousel"); var t = randomNumber(); var n = "carousel-"+t; e.attr("id", n); e.find(".carousel-indicators li").each(function(e, t) { $(t).attr("data-target", "#"+n)}); e.find(".left").attr("href", "#"+n); e.find(".right").attr("href", "#"+n)} function handleModalIds() { var e = $(".demo #myModalLink"); var t = randomNumber(); var n = "modal-container-"+t; var r = "modal-"+t; e.attr("id", r); e.attr("href", "#"+n); e.next().attr("id", n)} function handleTabsIds() { var e = $(".demo #myTabs"); var t = randomNumber(); var n = "tabs-"+t; e.attr("id", n); e.find(".tab-pane").each(function(e, t) { var n = $(t).attr("id"); var r = "panel-"+randomNumber(); $(t).attr("id", r); $(t).parent().parent().find("a[href=#"+n+"]").attr("href", "#"+r)})} function randomNumber() { return randomFromInterval(1, 1e6)}function randomFromInterval(e, t) { return Math.floor(Math.random()*(t-e+1)+e)}function gridSystemGenerator() { $(".lyrow .preview input").bind("keyup", function() { var e = 0; var t = ""; var n = false; var r = $(this).val().split(" ", 12); $.each(r, function(r, i) { if (!n) { if (parseInt(i) <= 0)n = true; e = e+parseInt(i); t += '<div class="col-md-'+i+' column"></div>' }}); if (e == 12&&!n) { $(this).parent().next().children().html(t); $(this).parent().prev().show()} else { $(this).parent().prev().hide()}})}function configurationElm(e, t) { $(".demo").delegate(".configuration > a", "click", function(e) { e.preventDefault(); var t = $(this).parent().next().next().children(); $(this).toggleClass("active"); t.toggleClass($(this).attr("rel"))}); $(".demo").delegate(".configuration .dropdown-menu a", "click", function(e) { e.preventDefault(); var t = $(this).parent().parent(); var n = t.parent().parent().next().next().children(); t.find("li").removeClass("active"); $(this).parent().addClass("active"); var r = ""; t.find("a").each(function() { r += $(this).attr("rel")+" " }); t.parent().removeClass("open"); n.removeClass(r); n.addClass($(this).attr("rel"))})}function removeElm() { $(".demo").delegate(".remove", "click", function(e) { e.preventDefault(); $(this).parent().remove(); if (!$(".demo .lyrow").length > 0) { clearDemo()}})}function clearDemo() { $(".demo").empty()}function removeMenuClasses() { $("#menu-layoutit li button").removeClass("active")}function changeStructure(e, t) { $("#download-layout ."+e).removeClass(e).addClass(t)}function cleanHtml(e) { $(e).parent().append($(e).children().html())}function downloadLayoutSrc() { var e = ""; $("#download-layout").children().html($(".demo").html()); var t = $("#download-layout").children(); t.find(".preview, .configuration, .drag, .remove").remove(); t.find(".lyrow").addClass("removeClean"); t.find(".box-element").addClass("removeClean"); t.find(".lyrow .lyrow .lyrow .lyrow .lyrow .removeClean").each(function() { cleanHtml(this)}); t.find(".lyrow .lyrow .lyrow .lyrow .removeClean").each(function() { cleanHtml(this)}); t.find(".lyrow .lyrow .lyrow .removeClean").each(function() { cleanHtml(this)}); t.find(".lyrow .lyrow .removeClean").each(function() { cleanHtml(this)}); t.find(".lyrow .removeClean").each(function() { cleanHtml(this)}); t.find(".removeClean").each(function() { cleanHtml(this)}); t.find(".removeClean").remove(); $("#download-layout .column").removeClass("ui-sortable"); $("#download-layout .row-fluid").removeClass("clearfix").children().removeClass("column"); if ($("#download-layout .container").length > 0) { changeStructure("row-fluid", "row")} formatSrc = $.htmlClean($("#download-layout").html(), { format: true,allowedAttributes:[["id"],["class"],["data-toggle"],["data-target"],["data-parent"],["role"],["data-dismiss"],["aria-labelledby"],["aria-hidden"],["data-slide-to"],["data-slide"]]});$("#download-layout").html(formatSrc);$("#downloadModal textarea").empty();$("#downloadModal textarea").val(formatSrc)}var currentDocument=null;var timerSave=2e3;var demoHtml=$(".demo").html();$(window).resize(function(){$("body").css("min-height",$(window).height()-90);$(".demo").css("min-height",$(window).height()-160)});$(document).ready(function(){$("body").css("min-height",$(window).height()-90);$(".demo").css("min-height",$(window).height()-160);$(".demo, .demo .column").sortable({connectWith:".column",opacity:.35,handle:".drag"});$(".sidebar-nav .lyrow").draggable({connectToSortable:".demo",helper:"clone",handle:".drag",drag:function(e,t){t.helper.width(400)},stop:function(e,t){$(".demo .column").sortable({opacity:.35,connectWith:".column"})}});$(".sidebar-nav .box").draggable({connectToSortable:".column",helper:"clone",handle:".drag",drag:function(e,t){t.helper.width(400)},stop:function(){handleJsIds()}});$("[data-target=#downloadModal]").click(function(e){e.preventDefault();downloadLayoutSrc()});$("#download").click(function(){downloadLayout();return false});$("#downloadhtml").click(function(){downloadHtmlLayout();return false});$("#edit").click(function(){$("body").removeClass("devpreview sourcepreview");$("body").addClass("edit");removeMenuClasses();$(this).addClass("active");return false});$("#clear").click(function(e){e.preventDefault();clearDemo()});$("#devpreview").click(function(){$("body").removeClass("edit sourcepreview");$("body").addClass("devpreview");removeMenuClasses();$(this).addClass("active");return false});$("#sourcepreview").click(function(){$("body").removeClass("edit");$("body").addClass("devpreview sourcepreview");removeMenuClasses();$(this).addClass("active");return false});$(".nav-header").click(function(){$(".sidebar-nav .boxes, .sidebar-nav .rows").hide();$(this).next().slideDown()});removeElm();configurationElm();gridSystemGenerator();setInterval(function(){handleSaveLayout()},timerSave)}) </script> </head> <body style="min-height: 857px;" class="edit"> <div class="navbar navbar-inverse navbar-fixed-top navbar-layoutit"> <div class="navbar-header" style="height:26px;overflow:hidden;"> <button data-target="navbar-collapse" data-toggle="collapse" class="navbar-toggle" type="button"> <span class="glyphicon-bar"></span> <span class="glyphicon-bar"></span> <span class="glyphicon-bar"></span> </button> <a class="navbar-brand" href="/"> Bootstrap3拖拽布局 </a> </div> <div class="collapse navbar-collapse"> <ul class="nav pull-right"> <li> <div class="btn-group btn-donate pull-right"></div> <div class="btn-group" data-toggle="buttons-radio"> </div> </li> </ul> <ul class="nav" id="menu-layoutit"> <li> <div class="btn-group" data-toggle="buttons-radio"> <button type="button" id="edit" class="active btn btn-xs btn-primary"> <i class="glyphicon glyphicon-edit "></i> 编辑 </button> <button type="button" class="btn btn-xs btn-primary" id="devpreview"> <i class="glyphicon-eye-close glyphicon"></i> 开发 </button> <button type="button" class="btn btn-xs btn-primary" id="sourcepreview"> <i class="glyphicon-eye-open glyphicon"></i> 预览 </button> </div> <div class="btn-group"> <button type="button" class="btn btn-xs btn-primary" id="button-download-modal" data-target="#downloadModal" role="button" data-toggle="modal"> <i class="glyphicon-chevron-down glyphicon"></i> 下载 </button> <button class="btn btn-xs btn-primary" href="#clear" id="clear"> <i class="glyphicon-trash glyphicon"></i> 清空 </button> </div> </li> </ul> </div> <!--/.navbar-collapse --> </div> <!--/.navbar-fixed-top --> <div class="container"> <div class="row"> <div class=""> <div class="sidebar-nav"> <ul class="nav nav-list accordion-group"> <li class="nav-header"> <div class="pull-right popover-info"> <i class="glyphicon glyphicon-question-sign"></i> <div class="popover fade right"> <div class="arrow"></div> <h3 class="popover-title">帮助</h3> <div class="popover-content"> 在这里设置你的栅格布局, 栅格总数默认为12, 用空格分割每列的栅格值。 </div> </div> </div> <i class="glyphicon-plus glyphicon"></i> 布局设置 </li> <li class="rows" id="estRows"> <div class="lyrow ui-draggable"> <a href="#close" class="remove label label-danger"> <i class="glyphicon-remove glyphicon"></i> 删除 </a> <span class="drag label label-default"> <i class="glyphicon glyphicon-move"></i> 拖动 </span> <div class="preview"> <input value="12" class="form-control" type="text"></div> <div class="view"> <div class="row clearfix"> <div class="col-md-12 column"></div> </div> </div> </div> <div class="lyrow ui-draggable"> <a href="#close" class="remove label label-danger"> <i class="glyphicon-remove glyphicon"></i> 删除 </a> <span class="drag label label-default"> <i class="glyphicon glyphicon-move"></i> 拖动 </span> <div class="preview"> <input value="6 6" class="form-control" type="text"></div> <div class="view"> <div class="row clearfix"> <div class="col-md-6 column"></div> <div class="col-md-6 column"></div> </div> </div> </div> <div class="lyrow ui-draggable"> <a href="#close" class="remove label label-danger"> <i class="glyphicon-remove glyphicon"></i> 删除 </a> <span class="drag label label-default"> <i class="glyphicon glyphicon-move"></i> 拖动 </span> <div class="preview"> <input value="8 4" class="form-control" type="text"></div> <div class="view"> <div class="row clearfix"> <div class="col-md-8 column"></div> <div class="col-md-4 column"></div> </div> </div> </div> <div class="lyrow ui-draggable"> <a href="#close" class="remove label label-danger"> <i class="glyphicon-remove glyphicon"></i> 删除 </a> <span class="drag label label-default"> <i class="glyphicon glyphicon-move"></i> 拖动 </span> <div class="preview"> <input value="4 4 4" class="form-control" type="text"></div> <div class="view"> <div class="row clearfix"> <div class="col-md-4 column"></div> <div class="col-md-4 column"></div> <div class="col-md-4 column"></div> </div> </div> </div> <div class="lyrow ui-draggable"> <a href="#close" class="remove label label-danger"> <i class="glyphicon-remove glyphicon"></i> 删除 </a> <span class="drag label label-default"> <i class="glyphicon glyphicon-move"></i> 拖动 </span> <div class="preview"> <input value="2 6 4" class="form-control" type="text"></div> <div class="view"> <div class="row clearfix"> <div class="col-md-2 column"></div> <div class="col-md-6 column"></div> <div class="col-md-4 column"></div> </div> </div> </div> </li> </ul> <ul class="nav nav-list accordion-group"> <li class="nav-header"> <i class="glyphicon glyphicon-plus"></i> 基本CSS <div class="pull-right popover-info"> <i class="glyphicon glyphicon-question-sign "></i> <div class="popover fade right"> <div class="arrow"></div> <h3 class="popover-title">帮助</h3> <div class="popover-content"> 将组件元素拖放入你需要放入的栅格列中。之后,你可以设置该元素的样式。 </div> </div> </div> </li> <li class="boxes" id="elmBase"> <div class="box box-element ui-draggable"> <a href="#close" class="remove label label-danger"> <i class="glyphicon glyphicon-remove"></i> 删除 </a> <span class="drag label label-default"> <i class="glyphicon glyphicon-move"></i> 拖动 </span> <span class="configuration"> <span class="btn-group btn-group-xs"> <a class="btn btn-default dropdown-toggle" data-toggle="dropdown" href="#"> 对齐 <span class="caret"></span> </a> <ul class="dropdown-menu"> <li class="active"> <a href="#" rel="">默认</a> </li> <li class=""> <a href="#" rel="text-left">靠左</a> </li> <li class=""> <a href="#" rel="text-center">居中</a> </li> <li class=""> <a href="#" rel="text-right">靠右</a> </li> </ul> </span> <span class="btn-group btn-group-xs"> <a class="btn btn-default dropdown-toggle" data-toggle="dropdown" href="#"> 标记 <span class="caret"></span> </a> <ul class="dropdown-menu"> <li class="active"> <a href="#" rel="">默认</a> </li> <li class=""> <a href="#" rel="muted">禁用</a> </li> <li class=""> <a href="#" rel="text-warning">警告</a> </li> <li class=""> <a href="#" rel="text-error">错误</a> </li> <li class=""> <a href="#" rel="text-info">提示</a> </li> <li class=""> <a href="#" rel="text-success">成功</a> </li> </ul> </span> </span> <div class="preview">标题栏</div> <div class="view"> <h3 contenteditable="true">h3. 这是一套可视化布局系统.</h3> </div> </div> <div class="box box-element ui-draggable"> <a href="#close" class="remove label label-danger"> <i class="glyphicon glyphicon-remove"></i> 删除 </a> <span class="drag label label-default"> <i class="glyphicon glyphicon-move"></i> 拖动 </span> <span class="configuration"> <span class="btn-group btn-group-xs"> <a class="btn btn-default dropdown-toggle" data-toggle="dropdown" href="#"> 对齐 <span class="caret"></span> </a> <ul class="dropdown-menu"> <li class="active"> <a href="#" rel="">默认</a> </li> <li class=""> <a href="#" rel="text-left">靠左</a> </li> <li class=""> <a href="#" rel="text-center">居中</a> </li> <li class=""> <a href="#" rel="text-right">靠右</a> </li> </ul> </span> <span class="btn-group btn-group-xs"> <a class="btn btn-default dropdown-toggle" data-toggle="dropdown" href="#"> 标记 <span class="caret"></span> </a> <ul class="dropdown-menu"> <li class="active"> <a href="#" rel="">默认</a> </li> <li class=""> <a href="#" rel="muted">禁用</a> </li> <li class=""> <a href="#" rel="text-warning">警告</a> </li> <li class=""> <a href="#" rel="text-error">错误</a> </li> <li class=""> <a href="#" rel="text-info">提示</a> </li> <li class=""> <a href="#" rel="text-success">成功</a> </li> </ul> </span> <a class="btn btn-xs btn-default" href="#" rel="lead">Lead</a> </span> <div class="preview">段落</div> <div class="view"> <p> <em>Git</em> 是一个分布式的版本控制系统,最初由 <strong>Linus Torvalds</strong> 编写,用作Linux内核代码的管理。在推出后,Git在其它项目中也取得了很大成功,尤其是在 <small>Ruby</small> 社区中。 </p> </div> </div> <div class="box box-element ui-draggable"> <a href="#close" class="remove label label-danger"> <i class="glyphicon glyphicon-remove"></i> 删除 </a> <span class="drag label label-default"> <i class="glyphicon glyphicon-move"></i> 拖动 </span> <div class="preview">地址</div> <div class="view"> <address contenteditable="true"> <strong>Twitter, Inc.</strong> <br> 795 Folsom Ave, Suite 600 <br> San Francisco, CA 94107 <br> <abbr title="Phone">P:</abbr> (123) 456-7890 </address> </div> </div> <div class="box box-element ui-draggable"> <a href="#close" class="remove label label-danger"> <i class="glyphicon glyphicon-remove"></i> 删除 </a> <span class="drag label label-default"> <i class="glyphicon glyphicon-move"></i> 拖动 </span> <span class="configuration"> <a class="btn btn-xs btn-default" href="#" rel="pull-right">Pull right</a> </span> <div class="preview">引用块</div> <div class="view clearfix"> <blockquote contenteditable="true"> <p> Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante. </p> <small> Someone famous <cite title="Source Title">Source Title</cite> </small> </blockquote> </div> </div> <div class="box box-element ui-draggable"> <a href="#close" class="remove label label-danger"> <i class="glyphicon glyphicon-remove"></i> 删除 </a> <span class="drag label label-default"> <i class="glyphicon glyphicon-move"></i> 拖动 </span> <span class="configuration"> <a class="btn btn-xs btn-default" href="#" rel="list-unstyled">无样式</a> <a class="btn btn-xs btn-default" href="#" rel="list-inline">嵌入</a> </span> <div class="preview">无序列表</div> <div class="view"> <ul contenteditable="true"> <li>Lorem ipsum dolor sit amet</li> <li>Consectetur adipiscing elit</li> <li>Integer molestie lorem at massa</li> <li>Facilisis in pretium nisl aliquet</li> <li>Nulla volutpat aliquam velit</li> <li>Faucibus porta lacus fringilla vel</li> <li>Aenean sit amet erat nunc</li> <li>Eget porttitor lorem</li> </ul> </div> </div> <div class="box box-element ui-draggable"> <a href="#close" class="remove label label-danger"> <i class="glyphicon glyphicon-remove"></i> 删除 </a> <span class="drag label label-default"> <i class="glyphicon glyphicon-move"></i> 拖动 </span> <span class="configuration"> <a class="btn btn-xs btn-default" href="#" rel="list-unstyled">无样式</a> <a class="btn btn-xs btn-default" href="#" rel="list-inline">嵌入</a> </span> <div class="preview">有序列表</div> <div class="view"> <ol contenteditable="true"> <li>Lorem ipsum dolor sit amet</li> <li>Consectetur adipiscing elit</li> <li>Integer molestie lorem at massa</li> <li>Facilisis in pretium nisl aliquet</li> <li>Nulla volutpat aliquam velit</li> <li>Faucibus porta lacus fringilla vel</li> <li>Aenean sit amet erat nunc</li> <li>Eget porttitor lorem</li> </ol> </div> </div> <div class="box box-element ui-draggable"> <a href="#close" class="remove label label-danger"> <i class="glyphicon glyphicon-remove"></i> 删除 </a> <span class="drag label label-default"> <i class="glyphicon glyphicon-move"></i> 拖动 </span> <span class="configuration"> <a class="btn btn-xs btn-default" href="#" rel="dl-horizontal">竖向对齐</a> </span> <div class="preview">详细描述</div> <div class="view"> <dl contenteditable="true"> <dt>Description lists</dt> <dd>A description list is perfect for defining terms.</dd> <dt>Euismod</dt> <dd> Vestibulum id ligula porta felis euismod semper eget lacinia odio sem nec elit. </dd> <dd>Donec id elit non mi porta gravida at eget metus.</dd> <dt>Malesuada porta</dt> <dd>Etiam porta sem malesuada magna mollis euismod.</dd> <dt>Felis euismod semper eget lacinia</dt> <dd> Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus. </dd> </dl> </div> </div> <div class="box box-element ui-draggable"> <a href="#close" class="remove label label-danger"> <i class="glyphicon glyphicon-remove"></i> 删除 </a> <span class="drag label label-default"> <i class="glyphicon glyphicon-move"></i> 拖动 </span> <span class="configuration"> <span class="btn-group btn-group-xs"> <a class="btn btn-default dropdown-toggle" data-toggle="dropdown" href="#"> 样式 <span class="caret"></span> </a> <ul class="dropdown-menu"> <li class="active"> <a href="#" rel="">默认</a> </li> <li class=""> <a href="#" rel="table-striped">条纹</a> </li> <li class=""> <a href="#" rel="table-bordered">边框</a> </li> </ul> </span> <a class="btn btn-xs btn-default" href="#" rel="table-hover">鼠标指示</a> <a class="btn btn-xs btn-default" href="#" rel="table-condensed">紧凑</a> </span> <div class="preview">表格</div> <div class="view"> <table class="table" contenteditable="true"> <thead> <tr> <th>编号</th> <th>产品</th> <th>交付时间</th> <th>状态</th> </tr> </thead> <tbody> <tr> <td>1</td> <td>TB - Monthly</td> <td>01/04/2012</td> <td>Default</td> </tr> <tr class="success"> <td>1</td> <td>TB - Monthly</td> <td>01/04/2012</td> <td>Approved</td> </tr> <tr class="error"> <td>2</td> <td>TB - Monthly</td> <td>02/04/2012</td> <td>Declined</td> </tr> <tr class="warning"> <td>3</td> <td>TB - Monthly</td> <td>03/04/2012</td> <td>Pending</td> </tr> <tr class="info"> <td>4</td> <td>TB - Monthly</td> <td>04/04/2012</td> <td>Call in to confirm</td> </tr> </tbody> </table> </div> </div> <div class="box box-element ui-draggable"> <a href="#close" class="remove label label-danger"> <i class="glyphicon glyphicon-remove"></i> 删除 </a> <span class="drag label label-default"> <i class="glyphicon glyphicon-move"></i> 拖动 </span> <span class="configuration"> <a class="btn btn-xs btn-default" href="#" rel="form-inline">嵌入</a> </span> <div class="preview">提交表单</div> <div class="view"> <form role="form"> <div class="form-group"> <label for="exampleInputEmail1">Email address</label> <input class="form-control" id="exampleInputEmail1" placeholder="Enter email" type="email"></div> <div class="form-group"> <label for="exampleInputPassword1">Password</label> <input class="form-control" id="exampleInputPassword1" placeholder="Password" type="password"></div> <div class="form-group"> <label for="exampleInputFile">File input</label> <input id="exampleInputFile" type="file"> <p class="help-block">Example block-level help text here.</p> </div> <div class="checkbox"> <label> <input type="checkbox">Check me out</label> </div> <button type="submit" class="btn btn-default">Submit</button> </form> </div> </div> <div class="box box-element ui-draggable"> <a href="#close" class="remove label label-danger"> <i class="glyphicon glyphicon-remove"></i> 删除 </a> <span class="drag label label-default"> <i class="glyphicon glyphicon-move"></i> 拖动 </span> <span class="configuration"></span> <div class="preview">纵向表单</div> <div class="view"> <form class="form-horizontal" role="form"> <div class="form-group"> <label for="inputEmail3" class="col-sm-2 control-label">Email</label> <div class="col-sm-10"> <input class="form-control" id="inputEmail3" placeholder="Email" type="email"></div> </div> <div class="form-group"> <label for="inputPassword3" class="col-sm-2 control-label">Password</label> <div class="col-sm-10"> <input class="form-control" id="inputPassword3" placeholder="Password" type="password"></div> </div> <div class="form-group"> <div class="col-sm-offset-2 col-sm-10"> <div class="checkbox"> <label> <input type="checkbox">Remember me</label> </div> </div> </div> <div class="form-group"> <div class="col-sm-offset-2 col-sm-10"> <button type="submit" class="btn btn-default">Sign in</button> </div> </div> </form> </div> </div> <div class="box box-element ui-draggable"> <a href="#close" class="remove label label-danger"> <i class="glyphicon glyphicon-remove"></i> 删除 </a> <span class="drag label label-default"> <i class="glyphicon glyphicon-move"></i> 拖动 </span> <span class="configuration"> <span class="btn-group btn-group-xs"> <a class="btn btn-default dropdown-toggle" data-toggle="dropdown" href="#"> 样式 <span class="caret"></span> </a> <ul class="dropdown-menu"> <li class="active"> <a href="#" rel="">默认</a> </li> <li class=""> <a href="#" rel="btn-primary">原生</a> </li> <li class=""> <a href="#" rel="btn-info">信息</a> </li> <li class=""> <a href="#" rel="btn-success">成功</a> </li> <li class=""> <a href="#" rel="btn-warning">提醒</a> </li> <li class=""> <a href="#" rel="btn-danger">危险</a> </li> <li class=""> <a href="#" rel="btn-inverse">反转</a> </li> <li class=""> <a href="#" rel="btn-link">链接</a> </li> </ul> </span> <span class="btn-group btn-group-xs"> <a class="btn btn-default dropdown-toggle" data-toggle="dropdown" href="#"> 尺寸 <span class="caret"></span> </a> <ul class="dropdown-menu"> <li class=""> <a href="#" rel="btn-lg">大</a> </li> <li class=""> <a href="#" rel="btn-default">默认</a> </li> <li class=""> <a href="#" rel="btn-sm">小</a> </li> <li class=""> <a href="#" rel="btn-xs">微型</a> </li> </ul> </span> <a class="btn btn-xs btn-default" href="#" rel="btn-block">通栏</a> <a class="btn btn-xs btn-default" href="#" rel="active">活动</a> <a class="btn btn-xs btn-default" href="#" rel="disabled">禁用</a> </span> <div class="preview">按钮</div> <div class="view"> <button type="button" class="btn btn-default" contenteditable="true">按钮</button> </div> </div> <div class="box box-element ui-draggable"> <a href="#close" class="remove label label-danger"> <i class="glyphicon glyphicon-remove"></i> 删除 </a> <span class="drag label label-default"> <i class="glyphicon glyphicon-move"></i> 拖动 </span> <span class="configuration"> <span class="btn-group btn-group-xs"> <a class="btn btn-default dropdown-toggle" data-toggle="dropdown" href="#"> 样式 <span class="caret"></span> </a> <ul class="dropdown-menu"> <li class="active"> <a href="#" rel="">默认</a> </li> <li class=""> <a href="#" rel="img-rounded">圆角</a> </li> <li class=""> <a href="#" rel="img-circle">圆圈</a> </li> <li class=""> <a href="#" rel="img-thumbnail">相框</a> </li> </ul> </span> </span> <div class="preview">图片</div> <div class="view"> <img alt="140x140" src="//repo.bfw.wiki/bfwrepo/image/5fb34aff14a0f.png?x-oss-process=image/auto-orient,1/resize,m_fill,w_140,h_140,/quality,q_90"></div> </div> </li> </ul> <ul class="nav nav-list accordion-group"> <li class="nav-header"> <i class="glyphicon glyphicon-plus"></i> 工具组件 <div class="pull-right popover-info"> <i class="glyphicon glyphicon-question-sign "></i> <div class="popover fade right"> <div class="arrow"></div> <h3 class="popover-title">帮助</h3> <div class="popover-content"> 将组件元素拖放入你需要放入的栅格列中。之后,你可以设置该组件的样式。 </div> </div> </div> </li> <li class="boxes" id="elmComponents"> <div class="box box-element ui-draggable"> <a href="#close" class="remove label label-danger"> <i class="glyphicon glyphicon-remove"></i> 删除 </a> <span class="drag label label-default"> <i class="glyphicon glyphicon-move"></i> 拖动 </span> <span class="configuration"> <span class="btn-group btn-group-xs"> <a class="btn btn-default dropdown-toggle" data-toggle="dropdown" href="#"> 尺寸 <span class="caret"></span> </a> <ul class="dropdown-menu"> <li class="active"> <a href="#" rel="">默认</a> </li> <li class=""> <a href="#" rel="btn-group-lg">大</a> </li> <li class=""> <a href="#" rel="btn-group-md">中</a> </li> <li class=""> <a href="#" rel="btn-group-sm">小</a> </li> <li class=""> <a href="#" rel="btn-group-xs">微型</a> </li> </ul> </span> <a class="btn btn-xs btn-default" href="#" rel="btn-group-vertical">竖向</a> </span> <div class="preview">按钮组</div> <div class="view"> <div class="btn-group"> <button class="btn btn-default" type="button"> <i class="glyphicon glyphicon-align-left"></i> 左 </button> <button class="btn btn-default" type="button"> <i class="glyphicon glyphicon-align-center"></i> 中 </button> <button class="btn btn-default" type="button"> <i class="glyphicon glyphicon-align-right"></i> 右 </button> <button class="btn btn-default" type="button"> <i class="glyphicon glyphicon-align-justify"></i> 全 </button> </div> </div> </div> <div class="box box-element ui-draggable"> <a href="#close" class="remove label label-danger"> <i class="glyphicon glyphicon-remove"></i> 删除 </a> <span class="drag label label-default"> <i class="glyphicon glyphicon-move"></i> 拖动 </span> <span class="configuration"> <a class="btn btn-xs btn-default" href="#" rel="dropup">朝向</a> </span> <div class="preview">下拉菜单</div> <div class="view"> <div class="btn-group"> <button class="btn btn-default" contenteditable="true">Action</button> <button data-toggle="dropdown" class="btn btn-default dropdown-toggle"> <span class="caret"></span> </button> <ul class="dropdown-menu" contenteditable="true"> <li> <a href="#">操作</a> </li> <li class="disabled"> <a href="#">另一操作</a> </li> <li class="divider"><br></li> <li> <a href="#">其它</a> </li> </ul> </div> </div> </div> <div class="box box-element ui-draggable"> <a href="#close" class="remove label label-danger"> <i class="glyphicon glyphicon-remove"></i> 删除 </a> <span class="drag label label-default"> <i class="glyphicon glyphicon-move"></i> 拖动 </span> <span class="configuration"> <span class="btn-group btn-group-xs"> <a class="btn btn-default dropdown-toggle" data-toggle="dropdown" href="#"> 样式 <span class="caret"></span> </a> <ul class="dropdown-menu"> <li class=""> <a href="#" rel="nav-tabs">默认</a> </li> <li class=""> <a href="#" rel="nav-pills">线框</a> </li> </ul> </span> <a class="btn btn-xs btn-default" href="#" rel="nav-stacked">切换格式</a> </span> <div class="preview">导航</div> <div class="view"> <ul class="nav nav-tabs" contenteditable="true"> <li class="active"> <a href="#">首页</a> </li> <li> <a href="#">简介</a> </li> <li class="disabled"> <a href="#">信息</a> </li> <li class="dropdown pull-right"> <a href="#" data-toggle="dropdown" class="dropdown-toggle"> 下拉 <b class="caret"></b> </a> <ul class="dropdown-menu"> <li> <a href="#">操作</a> </li> <li> <a href="#">设置栏目</a> </li> <li> <a href="#">更多设置</a> </li> <li class="divider"><br></li> <li> <a href="#">分割线</a> </li> </ul> </li> </ul> </div> </div> <div class="box box-element ui-draggable"> <a href="#close" class="remove label label-danger"> <i class="glyphicon glyphicon-remove"></i> 删除 </a> <span class="drag label label-default"> <i class="glyphicon glyphicon-move"></i> 拖动 </span> <div class="preview">路径导航</div> <div class="view"> <ul class="breadcrumb"> <li> <a href="#" contenteditable="true">Home</a> </li> <li> <a href="#" contenteditable="true">Library</a> </li> <li class="active" contenteditable="true">Data</li> </ul> </div> </div> <div class="box box-element ui-draggable"> <a href="#close" class="remove label label-danger"> <i class="glyphicon glyphicon-remove"></i> 删除 </a> <span class="drag label label-default"> <i class="glyphicon glyphicon-move"></i> 拖动 </span> <span class="configuration"> <span class="btn-group btn-group-xs"> <a class="btn btn-default dropdown-toggle" data-toggle="dropdown" href="#"> 尺寸 <span class="caret"></span> </a> <ul class="dropdown-menu"> <li class=""> <a href="#" rel="pagination-lg">大</a> </li> <li class="active"> <a href="#" rel="">众</a> </li> <li class=""> <a href="#" rel="pagination-sm">小</a> </li> </ul> </span> </span> <div class="preview">分页</div> <div class="view"> <ul class="pagination" contenteditable="true"> <li> <a href="#">Prev</a> </li> <li> <a href="#">1</a> </li> <li> <a href="#">2</a> </li> <li> <a href="#">3</a> </li> <li> <a href="#">4</a> </li> <li> <a href="#">5</a> </li> <li> <a href="#">Next</a> </li> </ul> </div> </div> <div class="box box-element ui-draggable"> <a href="#close" class="remove label label-danger"> <i class="glyphicon glyphicon-remove"></i> 删除 </a> <span class="drag label label-default"> <i class="glyphicon glyphicon-move"></i> 拖动 </span> <span class="configuration"> <span class="btn-group btn-group-xs"> <a class="btn btn-default dropdown-toggle" data-toggle="dropdown" href="#"> 样式 <span class="caret"></span> </a> <ul class="dropdown-menu"> <li class=""> <a href="#" rel="label-default">Default</a> </li> <li class=""> <a href="#" rel="label-primary">Primary</a> </li> <li class=""> <a href="#" rel="label-success".........完整代码请登录后点击上方下载按钮下载查看
网友评论0