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

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

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

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

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

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

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

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

簡單的進行登錄界面的布局

<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>驗證碼:</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>

運行的結(jié)果圖:

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

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

相關(guān)文章

最新評論

遂平县| 容城县| 沅陵县| 宝山区| 余庆县| 营口市| 沧州市| 松桃| 石城县| 潮安县| 横峰县| 蓬莱市| 德格县| 南郑县| 绥阳县| 绥宁县| 哈巴河县| 惠安县| 鄂州市| 冕宁县| 聂拉木县| 泰顺县| 津市市| 霍邱县| 庆安县| 顺昌县| 延长县| 册亨县| 兴和县| 镇坪县| 江油市| 巴彦县| 黄骅市| 望江县| 沙田区| 浦江县| 定兴县| 桐柏县| 本溪市| 卢氏县| 扎囊县|