


Erstellen einer Workstation basierend auf EasyUI + Bootstrap mithilfe der Tabs-Methode_Javascript-Kenntnisse
Die Landingpage sieht so aus:
Der spezifische Implementierungscode wird unten angezeigt:
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <script type="text/javascript" src="js/jquery-1.11.1.min.js"></script> <title>网络医院登陆</title> <style type="text/css"> * { margin: 0px; padding: 0px; } html, body { height: 100%; width: 100%; overflow: hidden; font-family: "微软雅黑"; font-size: 16px; } .main-box { width: 100%; height: 100%; min-width: 960px; overflow: hidden; background: url(imges/bg.jpg) no-repeat center center; } .left-box, .right-box { width: 50%; height: 100%; float: left; } .left-box { width: 50%; height: 100%; background: url(imges/leftboxbg.jpg) no-repeat center center; z-index: 10; position: relative; } .right-box { width: 50%; height: 100%; position: relative; } .left-title { width: 300px; height: 236px; margin: 150px auto; } .left-title img { display: block; width: 300px; height: 186px; } .left-title p { width: 300px; height: 50px; line-height: 50px; color: white; font-size: 18px; text-align: center; } .loginavatar { width: 160px; height: 160px; background: url(imges/loginavatar.png) no-repeat; margin: 50px auto 50px; } ul li { list-style: none; display: block; } .right-title, .right-title-zhuce { width: 400px; height: 255px; /* border: 1px solid red; */ margin: 0px auto; } .login input { display: block; width: 350px; color: black; height: 40px; border: 1px solid #42BD56; margin: 10px auto 10px; } input::-webkit-input-placeholder { color: black; } input:-moz-placeholder { color: black; } input:-ms-input-placeholder { color: black; } input.username { text-indent: 50px; background: url(imges/bg-loginid.png) no-repeat 0 -7px; margin-top: 30px; } input.pwd { text-indent: 50px; background: url(imges/bg-loginpass.png) no-repeat 0 -7px; } input.sub { background: #2A8C70; border: none; color: white; border-radius: 5px; } .sub-ljzc, .sub-fsdx { width: 350px; height: 42px; margin: 10px auto 10px; /* border: 1px solid red;*/ } input.sub, input.msg { width: 160px; height: 40px; margin: 0px; float: left; } input.msg { background: none; text-align: center; } .sub-ljzc .ljzc, .sub-ljzc .ljdl, .sub-fsdx .hqyzm { float: right; display: block; width: 160px; height: 40px; background: white; line-height: 40px; text-align: center; color: #30A080; margin-right: 0px; border: 1px solid #30A080; border-radius: 5px; margin: 0; } </style> <script type="text/javascript"> $(function() { var pwd = /^[a-zA-z]\w{3,15}$/; var phone_num = /^1\d{10}$/; $("#ljzc").click(function() { $("#right-title").hide(); $("#right-title-zhuce").show(); }); $("#ljdl").click(function() { $("#right-title").show(); $("#right-title-zhuce").hide(); }); $("#sub").click(function() { if ($(".username").val() == "") { alert("请输入电话号码!"); return false; }; if (!phone_num.test($(".username").val().trim())) { alert("电话号码有误,请检查"); return false; }; if ($(".pwd").val() == "") { alert("请输入密码!"); return false; }; }); $(".hqyzm").click(function() { if ($("#username").val() == "") { alert("请输入注册电话号码!"); return false; } else if (!phone_num.test($("#username").val().trim())) { alert("注册电话号码有误,请重新填写!"); return false; } else { $('.hqyzm').css('color', 'red').prop("disabled", true); //发短消息不可再点击 var i = 10; var n = setInterval(function() { var j = i + 's'; $('.hqyzm').val(j); i--; if (i < -1) { clearInterval(n); $('.hqyzm').val('重新获取验证码!').prop("disabled", false); } }, 1000); } }) $("#ljzc-tj").click(function() { if ($("#username").val() == "") { alert("请输入注册电话号码!"); return false; }; if (!phone_num.test($("#username").val().trim())) { alert("注册电话号码有误,请重新填写!"); return false; }; if ($(".msg").val() == "") { alert("短息为空!"); return false; }; if ($("#pwd").val() == "") { alert("密码为空!"); return false; }; if (!pwd.test($("#pwd").val().trim())) { alert("密码有误,请重新填写,包含字母数字下划线,4-16位"); return false; }; }) }) </script> </head> <body> <div class="main-box"> <div class="left-box"> <div class="left-title"> <img src="/static/imghw/default1.png" data-src="imges/loginlogo.png" class="lazy" / alt="Erstellen einer Workstation basierend auf EasyUI + Bootstrap mithilfe der Tabs-Methode_Javascript-Kenntnisse" > <p>医生工作站</p> </div> </div> <div class="right-box"> <div class="loginavatar"></div> <div class="right-title" id="right-title"> <form action="#" method="post " class="login " autocomplete="off"> <input type="text" class="username " placeholder="请输入账号 " /> <input type="password" class="pwd " placeholder="请输入密码 " /> <div class="sub-ljzc "> <input type="submit" value="登陆 " class="sub" id="sub" /> <a class="ljzc " id="ljzc">立即注册</a> </div> </form> </div> <div class="right-title-zhuce" id="right-title-zhuce" style="display: none" ;> <form action="#" method="post" class="login" autocomplete="off"> <input type="text" class="username" id="username" placeholder="请输入注册账号" /> <div class="sub-fsdx"> <input type="text" class="msg" /> <input type="button" class="hqyzm" value="获取验证码 "> </div> <input type="password" placeholder="请输入注册密码" class="pwd" id="pwd" /> <div class="sub-ljzc"> <input type="submit" value="立即注册" class="sub" id="ljzc-tj" /> <a class="ljdl" id="ljdl">立即登录</a> </div> </form> </div> </div> </div> </body> </html>
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <link rel="stylesheet" href="css/reset.css" /> <link rel="stylesheet" href="css/bootstrap.min.css" /> <link rel="stylesheet" type="text/css" href="jquery-easyui-1.4.3/themes/default/easyui.css"> <link rel="stylesheet" type="text/css" href="jquery-easyui-1.4.3/themes/icon.css"> <script type="text/javascript" src="js/jquery-1.11.1.min.js"></script> <script type="text/javascript" src="jquery-easyui-1.4.3/jquery.easyui.min.js"></script> <script type="text/javascript" src="jquery-easyui-1.4.3/easyui-lang-zh_CN.js"></script> <title>网络医院主页</title> <style type="text/css"> * { padding: 0px; margin: 0px; } html, body { width: 100%; height: 100%; font-size: 16px; overflow: hidden; } a:link { text-decoration: none; /* 指正常的未被访问过的链接*/ } a { text-decoration: none; } a:visited { text-decoration: none; /*指已经访问过的链接*/ } a:hover { text-decoration: none; /*指鼠标在链接*/ } a:active { text-decoration: none; /* 指正在点的链接*/ } /**************main*********************/ .main { width: 100%; height: 100%; background: pink; overflow: hidden; min-width:1200px; } .left-box { height: 100%; float: left; width: 15%; background: #30323e; /*overflow-y: scroll;*/ } .left-box-logo { width: 160px; height: 150px; margin: 30px auto 0px; } .left-box-logo img { width: 160px; height: 100px; } .left-box-logo h3 { color: white; margin: 0; line-height: 50px; height: 50px; text-align: center; } /*************tree li******************/ .tree { /*border: 1px solid red;*/ height: auto; } .tree-box { list-style: none; line-height: 48px; padding: 0; margin: 0; } .tree-box li { border-bottom: 1px solid #232243; display: block; } .tree-box li:hover, .tree-box li:focus, .tree-box li:active { background: #005eac; } .tree-box>li>a { color: #A6A6A6; margin-left: 20px; } .tree-box a { display: block; height: 48px; width: 100%; } .tree-box-two a { text-align: center; color: white; } .hzgl a:before { content: url(imges/icon-patient.png); height: 100%; display: inline-block; margin-right: 5px; vertical-align: middle; } .pzgl a:before { content: url(imges/icon-lineup.png); height: 100%; display: inline-block; margin-right: 5px; vertical-align: middle; } .xgmm a:before { content: url(imges/icon-lock.png); height: 100%; display: inline-block; margin-right: 5px; vertical-align: middle; } a.bg:before { content: url(imges/bg-verticalsubmenu.png); height: 100%; display: inline-block; margin-right: 5px; vertical-align: middle; } /**************right-box**************/ .right-box { height: 100%; float: left; width: 85%; background: white; font-size: 18px; position: relative; } .time-now { margin-left: 20px; font-family: "微软雅黑"; line-height: 50px; } .right-title { width: 98%; margin: 10px auto 0px; height: 50px; background: #FF855E; } .right-title span { margin-top: 8px; } .right-title .user-info { float: right; } .right-title .user-info button { margin-right: 20px; } #tab-page div { background: #D2D2D9; } h1.welcome { font-size: 80px; font-family: "微软雅黑"; color: green; margin: 15% auto; text-align: center; } /*****************************************/ /* easy UI */ .tabs-header, .tabs-tool { background: green; } div.tabs-header { border: 1px solid #cacacd; border-bottom: 1px solid #e6e6e6; } ul.tabs { border-bottom: 1px solid #cacacd; height: 30px; } .tabs li.tabs-selected a.tabs-inner { background: #E6E6E6; color: #5a5a5a; } .tabs li a.tabs-inner { background: #f2f2f2; color: #5a5a5a; border: 1px solid #cacacd; padding: 0 15px; border-radius: 0; } .tabs li a.tabs-inner:hover { background: #E6E6E6; } .tabs li.tabs-selected a.tabs-inner { border: 1px solid #cacacd; border-bottom: 1px solid #E6E6E6;} </style> <script type="text/javascript"> $(function() { //初始化tab $("#tab-page").tabs({ tabWidth: 100, //tab头的宽度 tabHeight: 30, //tab头的高度 closable: true, fit: true //tab铺满全屏 }); }); //打开新tab函数 function addTabs(title, url) { if ($('#tab-page').tabs('exists', title)) { $('#tab-page').tabs('select', title); $('#tab-page').tabs('update', { tab: select }); var content = '<iframe class="tabIframe" style="width: 100%;" scrolling="scroll" frameborder="0" src="' + url + '"></iframe>'; $('#tab-page').tabs('add', { title: title, fit: true, //tab铺满全屏 content: content, closable: true }); var rH = $(".right-box").height(); var rhH = $(".right-head").height(); var hC = rH - 50; $(".panel-body .tabIframe").height(hC); } else { var content = '<iframe class="tabIframe" style="width: 100%;" scrolling="scroll" frameborder="0" src="' + url + '"></iframe>'; $('#tab-page').tabs('add', { title: title, content: content, fit: true, //tab铺满全屏 closable: true }); var rH = $(".right-box").height(); var rhH = $(".right-head").height(); var hC = rH - 50; $(".panel-body .tabIframe").height(hC); } } </script> </head> <body> <div class="main"> <div class="left-box"> <div class="left-box-logo"> <img src="/static/imghw/default1.png" data-src="imges/logo.png" class="lazy" / alt="Erstellen einer Workstation basierend auf EasyUI + Bootstrap mithilfe der Tabs-Methode_Javascript-Kenntnisse" > <h3 id="医生端"> -医生端- </h3> </div> <div class="tree"> <ul class="tree-box"> <li class="hzgl"><a href="#">患者管理</a></li> <ul class="tree-box-two"> <li class="hzlb"><a class="bg" onclick="addTabs('患者列表','articleList.html')">患者列表</a></li> <li class="hzzc"><a class="bg" onclick="addTabs('百度','https://www.baidu.com')">患者注册</a></li> <li class="hzxq"><a class="bg" onclick="addTabs('360搜索','http://www.so.com/')">患者详情</a></li> </ul> <li class="pzgl"><a href="">排号管理</a></li> <li class="xgmm"><a href="">病例管理</a></li> <li class="pzgl"><a href="">加好管理</a></li> <li class="xgmm"><a href="">修改密码</a></li> <li class="pzgl"><a href="">退出</a></li> </ul> </div> </div> <div class="right-box"> <div class="right-title"> <span class="time-now">当前时间:2015年6月1日</span> <span class="user-info"> <button type="button" class="btn btn-success">当前账户:libin</button> <button type="button" class="btn btn-warning"> 退出</button> </span> </div> <div id="tab-page" class=" " style="width: 100%;"> <div title="Home"> <h1 id="欢迎使用乐普网络医院">欢迎使用乐普网络医院</h1> </div> </div> </div> </div> </body> </html>

Heiße KI -Werkzeuge

Undresser.AI Undress
KI-gestützte App zum Erstellen realistischer Aktfotos

AI Clothes Remover
Online-KI-Tool zum Entfernen von Kleidung aus Fotos.

Undress AI Tool
Ausziehbilder kostenlos

Clothoff.io
KI-Kleiderentferner

Video Face Swap
Tauschen Sie Gesichter in jedem Video mühelos mit unserem völlig kostenlosen KI-Gesichtstausch-Tool aus!

Heißer Artikel

Heiße Werkzeuge

Notepad++7.3.1
Einfach zu bedienender und kostenloser Code-Editor

SublimeText3 chinesische Version
Chinesische Version, sehr einfach zu bedienen

Senden Sie Studio 13.0.1
Leistungsstarke integrierte PHP-Entwicklungsumgebung

Dreamweaver CS6
Visuelle Webentwicklungstools

SublimeText3 Mac-Version
Codebearbeitungssoftware auf Gottesniveau (SublimeText3)

Heiße Themen



Häufig gestellte Fragen und Lösungen für das Ticket-Ticket-Ticket-Ticket in Front-End im Front-End-Entwicklungsdruck ist der Ticketdruck eine häufige Voraussetzung. Viele Entwickler implementieren jedoch ...

Es gibt kein absolutes Gehalt für Python- und JavaScript -Entwickler, je nach Fähigkeiten und Branchenbedürfnissen. 1. Python kann mehr in Datenwissenschaft und maschinellem Lernen bezahlt werden. 2. JavaScript hat eine große Nachfrage in der Entwicklung von Front-End- und Full-Stack-Entwicklung, und sein Gehalt ist auch beträchtlich. 3. Einflussfaktoren umfassen Erfahrung, geografische Standort, Unternehmensgröße und spezifische Fähigkeiten.

JavaScript ist der Eckpfeiler der modernen Webentwicklung. Zu den Hauptfunktionen gehören eine ereignisorientierte Programmierung, die Erzeugung der dynamischen Inhalte und die asynchrone Programmierung. 1) Ereignisgesteuerte Programmierung ermöglicht es Webseiten, sich dynamisch entsprechend den Benutzeroperationen zu ändern. 2) Die dynamische Inhaltsgenerierung ermöglicht die Anpassung der Seiteninhalte gemäß den Bedingungen. 3) Asynchrone Programmierung stellt sicher, dass die Benutzeroberfläche nicht blockiert ist. JavaScript wird häufig in der Webinteraktion, der einseitigen Anwendung und der serverseitigen Entwicklung verwendet, wodurch die Flexibilität der Benutzererfahrung und die plattformübergreifende Entwicklung erheblich verbessert wird.

Wie fusioniere ich Array -Elemente mit derselben ID in ein Objekt in JavaScript? Bei der Verarbeitung von Daten begegnen wir häufig die Notwendigkeit, dieselbe ID zu haben ...

Diskussion über die Realisierung von Parallaxe -Scrolling- und Elementanimationseffekten in diesem Artikel wird untersuchen, wie die offizielle Website der Shiseeido -Website (https://www.shiseeido.co.jp/sb/wonderland/) ähnlich ist ...

Eingehende Diskussion der Ursachen des Unterschieds in der Konsole.log-Ausgabe. In diesem Artikel wird die Unterschiede in den Ausgabeergebnissen der Konsolenfunktion in einem Code analysiert und die Gründe dafür erläutert. � ...

JavaScript zu lernen ist nicht schwierig, aber es ist schwierig. 1) Verstehen Sie grundlegende Konzepte wie Variablen, Datentypen, Funktionen usw. 2) Beherrschen Sie die asynchrone Programmierung und implementieren Sie sie durch Ereignisschleifen. 3) Verwenden Sie DOM -Operationen und versprechen Sie, asynchrone Anfragen zu bearbeiten. 4) Vermeiden Sie häufige Fehler und verwenden Sie Debugging -Techniken. 5) Die Leistung optimieren und Best Practices befolgen.

Erforschen Sie die Implementierung der Funktion des Bedien- und Drop-Einstellungsfunktion der Panel ähnlich wie VSCODE im Front-End. In der Front-End-Entwicklung wird VSCODE ähnlich wie VSCODE implementiert ...
