欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  IT编程

基于jQuery Easyui实现登陆框界面

程序员文章站 2023-02-25 12:55:01
效果图 css a{ text-decoration:none; } body{ margin:0px; } #header{ w...

效果图

基于jQuery Easyui实现登陆框界面

css

a{
  text-decoration:none;
}
body{
  margin:0px;
}
#header{
  width:100%;
  height:30px;
  background-color:#e0efff;
  padding-top: 5px;
  padding-bottom: 10px;
}
#header .logo{
  margin-left: 50px;
  font-size: 24px;
  font-family: 微软雅黑;
}
#picture{
  width:100%;
  height:750px;
}
.panel-title {
 text-align: center;
 font-size: 16px;
}
#bootom{
  padding-top:50px;
  width:100%;
  height:100px;
  background: #eaf2ff;
}
#bootom_content{
  margin-left:100px;
  width:80%;
  text-align: center;
  font-size:0.8em; 
}
p{
  line-height:20px; 
}

html

<!doctype html public "-//w3c//dtd xhtml 1.0 transitional//en" "http://www.w3.org/tr/xhtml1/dtd/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
  <meta http-equiv="content-type" content="text/html;charset=utf-8">
  <!-- 引用的css -->
  <link rel="stylesheet" type="text/css" href="themes/default/easyui.css" rel="external nofollow" >  
  <link rel="stylesheet" type="text/css" href="themes/default/panel.css" rel="external nofollow" >  
  <link rel="stylesheet" type="text/css" href="themes/icon.css" rel="external nofollow" > 
  <link rel="stylesheet" type="text/css" href="css/index.css" rel="external nofollow" > 
  <script type="text/javascript" src="js/jquery.min.js"></script>
  <script type="text/javascript" src="js/jquery.easyui.min.js"></script>
  <title>系统首页</title>
</head>
<script type="text/javascript">
console.info("==================")
  $('#p').panel('move',{
    left:100,
    top:100
  }); 
</script>
<body>
  <div id="header" >
    <div class="logo" onclick="window.location.href='index.html'">
      <strong信息系统</strong>
    </div>
  </div>
  <div id="picture" style="background:url(images/index.jpg) no-repeat; background-size: cover;">
  <div data-options=" region:'east',split:true,style:{position:'absolute',right:50,top:150}"
 class="easyui-panel " title="用户登录" style="width:300px;text-align: center;">
      <div style="padding:10px 60px 20px 60px">
        <form id="ff" class="easyui-form" method="post" data-options="novalidate:true">
          <table cellpadding="5">
            <tr>
              <td><input class="easyui-textbox" data-options="prompt:'账号',validtype:'name'" iconcls="icon-man" iconalign=left style="width:100%;height:32px"/></td>
            </tr>
            <tr>
              <td><input class="easyui-textbox" data-options="prompt:'密码',validtype:'password'" iconcls="icon-lock" iconalign=left style="width:100%;height:32px"></input></td>
            </tr>
            <tr>
              <td><input class="easyui-textbox" data-options="prompt:'验证码',validtype:'validate'" iconcls="icon-filter" iconalign=left style="width:55%;height:32px" />    
              <img src="" alt="" width="56" height="32" align='absmiddle' /> </td>
            </tr>
          </table>
        </form>
        <div style="text-align:center;padding:5px; ">
          <a href="#" rel="external nofollow" rel="external nofollow" class="easyui-linkbutton" style="width:45%;height:32px">登录</a>    
          <a href="#" rel="external nofollow" rel="external nofollow" class="easyui-linkbutton" style="width:45%;height:32px">注册</a>
        </div>
      </div>
    </div>
  </div>
  <div id="bootom">
    <div id="bootom_content">
      <p><strong>关于我们      法律声明      服务条款     联系我们</strong></p>
      <p> 
        地址:江西省南昌市经济开发区天祥大道    邮箱:330000 
           copyright © 2017 - 2018    hacker_pangdaxing@qq.com 版权所有
      </p>
      <p>
        建议使用ie8以上版本浏览器    e-mail:hacker_pandaxing@qq.com
      </p>
    </div>
  </div>
</body>
<script>
  function submitform(){
    $('#ff').form('submit',{
      onsubmit:function(){
        return $(this).form('enablevalidation').form('validate');
      }
    });
  }
  function clearform(){
    $('#ff').form('clear');
  }
</script>
</html>

以上所述是小编给大家介绍的基于jquery easyui实现登陆框界面,希望对大家有所帮助