table+css與xhtmL+css實現同一登陸框(程式碼片段)

來源:互聯網
上載者:User

標籤:style   http   color   io   os   ar   for   div   sp   

1、從網上下載了一個不錯的登入框樣式(table結合css布局); 
2、初學xhtmL,自己改寫了一下,希望有用 
3. 我怎麼不會上傳呢?  
?1. [代碼]xhtml_css組合    
<!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">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>form表單—xhtml_css表示</title>
<style type="text/css">
 
    body,h2,h3,p,img,dl,dd,ul, ol,li{margin:0;padding:0;border:none;font-size:12px;color:#666}
    body{margin:0 auto;font-family: verdana, tahoma, sans-serif;}
    ul,ol,li{ list-style:none}
    a{text-decoration:none; color:#666}
    a:hover{ color:#F60; }
     
    .login { width:180px; padding:15px 10px;}
    .login fieldset{ border:0; margin:0px; padding:0px;}
    .login legend{ display:none}
    .login_title,.login_item,.login_footer{ margin-top:8px;}
    .login_title p,.login_item .input_user,.login_item .input_pwd,.login_footer .login_btn{ margin-top:6px;}
     
     
    .login_title h3{ height:20px; padding-top:5px; font-size:10px;font-weight:bold; background-color:#F4F4F4}
    .login_title img{ width:16px; height:16px; } 
    .login_title p{ font-size:12px;color:#666666}
     
    .login_item label{ display:block;}
    .login_item input{background:#FFFFFF;border:1px solid #CCCCCC;color:#000000;font-size:0.95em;}
    .login_item .input_user{background-image:url(images/username.gif);background-position:1px 1px;background-repeat:no-repeat;padding-left:20px;height:20px;FONT-SIZE:12px;}
    .login_item .input_pwd{background-image:url(images/password.gif);background-position:1px 1px;background-repeat:no-repeat;padding-left:20px;height:20px;FONT-SIZE:12px;}
     
    .login_footer p{font-size:10px;color:#F60}
    .login_footer .login_btn{width:85px;}
 
</style>
</head>
<body>
<div class="login">
     
    <form id="" name="" action="" method="post">
        <fieldset>http://www.huiyi8.com/gongzuozongjie/?
            <legend>登陸</legend>
            <div class="login_title">
                <h3><b>+使用者登入</b></h3>
                <P><img src="images/warning.gif" align="absmiddle">請輸入登陸的使用者和密碼</P>
            </div>工作總結
            <div class="login_item">
                <label for="form_user">使用者名稱:</label>
                <input type="text" class="input_user" name="form_user" id="form_user" value="" tabindex="1" />
            </div>
            <div class="login_item">
                <label for="form_pwd">密&nbsp;&nbsp;碼:</label>
                <input type="text" class="input_pwd" name="form_pwd" id="form_pwd" value="" tabindex="2" />
            </div>
            <div class="login_footer">
                <p>忘記密碼?</p>
                <input type="submit"  class="login_btn" value="登&nbsp;&nbsp;錄" tabindex="3" />
            </div>
        </fieldset>
     
    </form>
 
</div>
 
</body>
</html>
?

table+css與xhtmL+css實現同一登陸框(程式碼片段)

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.