最新国产好看的视频,伊人天堂AV在线,国产Aaaaaa视频,蜜臀视频在线观看一区,人妻av色图,密臀久久久精品影片,青青视频免费观看毛片,久草在线观看视,国产三级精品色情在线

MVC+EasyUI+三層新聞網(wǎng)站建立 后臺(tái)登錄界面的搭建(二)

 更新時(shí)間:2017年07月06日 14:09:12   作者:劉指導(dǎo)  
這篇文章主要為大家詳細(xì)介紹了MVC+EasyUI+三層新聞網(wǎng)站建立的第二篇,教大家如何搭建后臺(tái)登錄界面,具有一定的參考價(jià)值,感興趣的小伙伴們可以參考一下

新聞網(wǎng)站建立,后臺(tái)登錄界面的搭建

首先我們?cè)贑ontrollers里面新添加一個(gè)控制器就叫LoginController,右鍵點(diǎn)擊Controllers添加控制器就可以了(注意后面一定是Controller結(jié)尾,這是一種約定)

其次:右鍵點(diǎn)擊index建立Index視圖。(不選擇使用母版頁)

現(xiàn)在我們就可以在Index視圖中設(shè)計(jì)我們的登錄頁面了。

這里需要我們引入幾個(gè)Css樣式和JS文件

簡單的進(jìn)行登錄界面的布局

<html>
<head>
 <meta name="viewport" content="width=device-width" />
 <title>登錄</title>
 <script src="~/Scripts/jquery-1.8.2.js"></script>
 <script src="~/Content/EasyUI/jquery.easyui.min.js"></script>
 <script src="~/Content/EasyUI/easyui-lang-zh_CN.js"></script>
 <link href="~/Content/EasyUI/themes/default/easyui.css" rel="external nofollow" rel="stylesheet" />
 <link href="~/Content/EasyUI/themes/icon.css" rel="external nofollow" rel="stylesheet" />
 <script type="text/javascript">
  $(function () {
   initWin(); //初始化登錄窗體
  });
  function initWin() {
   $("#win").window({
    title: "登錄",
    width: 400,
    height: 270,
    collapsible: false,
    minimizable: false,
    maximizable: false,
    closable: false,
    modal: true,
    resizable: false,
   });
  }
 </script>
</head>
<body>
 <div id="win"class="easyui-window">
  <div>
   <div style="height:20px"></div>
   <table>
    <tr>
     <td style="width:20px"></td>
     <td>用戶名:</td>
     <td><input type="text"class="easyui-textbox" id="txtName" name="txtName"/></td>
     <td><span id="spanName" style="color:red"></span></td>
    </tr>
    <tr style="height:10px"></tr>

    <tr>
     <td style="width:20px"></td>
     <td>密 碼:</td>
     <td><input type="password/"class="easyui-textbox"id="txtPwd" name="txtPwd"></td>
     <td><span id="spanPwd" style="color:red"></span></td>
    </tr>
    <tr style="height:10px"></tr>
    <tr>
     <td style="width:20px"></td>
     <td>驗(yàn)證碼:</td>
     <td><input type="text"class="easyui-textbox" id="txtVcode" name="txtVcode"/></td>
     <td><span id="spanVcode"style="color:red"></span></td>
    </tr>

    <tr style="height:10px"></tr>

    <tr>
     <td style="width:20px"></td>
     <td><img id="image" src="" style="float: left; height: 24px;" /></td>
     <td><a href="javascript:void(0)" rel="external nofollow" rel="external nofollow" id="changeVcode">看不清,換一張</a></td>
    </tr>
    
   </table>
  </div>
  <div style="height:10px"></div>
  <div data-options="region:'south',border:false" style="text-align:center;padding:5px 0 0;">
   <a class="easyui-linkbutton" data-options="iconCls:'icon-ok'" href="javascript:void(0)" rel="external nofollow" rel="external nofollow" id="btnOk" style="width:80px">登錄</a>
  </div>
  </div>
</body>
</html>

運(yùn)行的結(jié)果圖:

這里驗(yàn)證碼的圖片沒有顯示出來,這是沒有關(guān)系的,在下一節(jié)中就講怎么把驗(yàn)證碼顯示出來。

以上就是本文的全部內(nèi)容,希望對(duì)大家的學(xué)習(xí)有所幫助,也希望大家多多支持腳本之家。

相關(guān)文章

最新評(píng)論

扎鲁特旗| 徐汇区| 玉门市| 舟山市| 任丘市| 和平县| 霍林郭勒市| 葫芦岛市| 天峻县| 茶陵县| 徐汇区| 东平县| 宁夏| 尚义县| 敦化市| 镇平县| 南华县| 固原市| 石台县| 杭锦后旗| 洱源县| 浦县| 瑞丽市| 石嘴山市| 呼和浩特市| 会昌县| 板桥市| 山阳县| 澄城县| 白河县| 乌兰浩特市| 渭源县| 沧州市| 玉树县| 文安县| 苍梧县| 吉林市| 揭西县| 平利县| 通城县| 休宁县|