已有101人关注
代码又有错误
发表在Java图书答疑 2014-11-10
是否精华
版块置顶:
老师您好 :
我有段代码总也找不到错误,麻烦老师帮我看看 老师受累了!
<html>
     <head>
           <title>使用样式表修饰表单的页面</title>
        <style>
                 body{background-color:white;
                     }
                 fieldest{border:2px dashed red;           
                          padding:10px;
                          margin-top:20xp;
                          margin-bottom:20px;
                          }
                 legend{font-family:微软雅黑;              
                        font-size:90%;
                        letter-spacing:-1px;
                        font-weight:bold;
                        line-height:1.1;
                        color:#fff;
                        background:orange;
                        border:1px solid #333;
                        padding:2px 6px;
                       }
               h1{font-family:微软雅黑;
                  font-size:175%
                  letter-spacing:-1px;
                  font-weight:normal;
                  line-height:1.1;
                  color:#333;
                 }
              label{width:140px;                           
                   height:32px;
                   margin-top:3px;
                   margin-right:2px;
                   padding-top:11px;
                   padding-left:6px;
                   background-color:maroom;
                   float:left;
                   display:block;
                   font-family:幼圆;
                   font-size:115%
                   letter-spacing:-1px;
                   font-weight:normal;
                   line-height:1.1;
                   color:yellow;
                   }
            .form{margin:0;
                  padding:0;
                  }
            #container{                                   
                      width:750px;
                      margin:auto;
                      padding:10px;
                      }
            #top{width:680px;                                
                 height:50px
                }
            #leftSide{
                      width:530px;
                      padding-top:30px;
                      float:left;
                      }
           .clear{clear:both;
                 }
           .holder{background-color:#fff;
                 }
           .div_texbox{width:347px;                          
                      float:right;
                      height:35px;
                      margin-top:3px;
                      padding-top:5px;
                      padding-bottom:3px;
                      padding-left:5px;
                      background-color:#E6E6E6;
                      }
          .textbox{                                         
                   background-color:#FFFFFF;
                   background-repeat:no-repeat;
                   background-position:left;
                   width:285px;
                   font:normal 18px 微软雅黑;
                   color:black;
                   padding:3px 5px 3px 19px;                
                   }
         textbox:focus,textbox:hover{background-color:orange;        
                                 }
         
         .username{
                  background-repeat:no-repeat
                  background-position:left;
                  background-color:#FFFFFF;
                  width:285px;
                  font:normal 18px 微软雅黑;
                  color:black;
                  padding:3px 5px 3px 19px;
                 }
        .username:focus,.username:hover{background-color:orange;
                                         }
        .password{
                  background-repead:no-repead;                     
                  background-position:left;
                  background-color:#FFFFFF
                  width:285px;
                  font:normal 18px 微软雅黑;
                  color:black;
                  padding:3px 5px 3px 19px;
                  }
        .password:focus,.password:hover{
                                        background-color:orange;
                                       }
        .button_div{
                    width:287px;
                    float:right;
                    background-color:#fff;
                    border:1px solid #ccc;
                    text-align:right;
                    height:35px;
                    margin-top:3px;
                    padding:5px 32px 3px;
                   }
       .buttons{background:#e3e3db;
                font-size:12px;
                color:#989070;
                padding:6px 14px;
                border-width:2px;
                border-style:solid;
                border-color:#fff #d8d8d0 #d8d8d0 #fff;
                text-decoration:none;
                text-transform:uppercase;
                font-weight:bold;
                }
        </style>
     </head>
<body>
     <div id="container">
         <div id="top">
              <h1>请填写这张表格</h1>
         </div>
         <div id="leftSide">
                 <fieldset>
                  <legent>注册信息:</legent>
              <form action="login.php" method="POST" class="form">
                  <label for="username">注册名:</label>
                <div class="div_texbox">
                        <input name="username" type="text" class="username" id="username" value="depp"/>
                </div>
                  <label for="password">密码:</label>
             
                 <div class="div_texbox">
                         <input name="password" type="password" class="password" id="password" value="password"/>
                 </div>
                 <div class="button_div">
                         <input nume="Submit" type="button" value="确定" class="buttons"/>
                </div>
             </form>
                <div class="clear"></div>
                   </fieldset>
                   <hr size="1">
                   <fieldset>
              <legend>个人信息:</legend>
            <form action="..." method="POST" class="form">
                      <label for="name">姓名:</label>
                 <div class="div_texbox">
                     <input name="name" type="text" class="textbox" id="name" value="Depp"/>
                 </div>
                 <label for="address">地址:</label>
                <div class="div_texbox">
                        <input name="address" type="text" class="textbox" id="address" value="G 1128"/>
                </div>
                     <label for="city">所属区:</label>
               <div class="div_texbox">
                         <input name="city" type="text" class="textbox" id="city" value="浦东新区"/>
               </div>
                   <label for="country">城市:</label>
               <div class="div_texbox">
                     <input name="country" type="text" class="textbox" id="country" value="上海"/>
               </div>
              <div class="button_div">
                    <input name="Submit" type="button" value="确定" class="buttons"/>
              </div>
           </form>

               </fieldset>
         </div>
     </div>
</body>
</html>
辛苦了 老师 谢谢!
分享到:
精彩评论 1
学分: LV1
TA的每日心情
开心
2021-10-26 19:13:33
2014-11-11
沙发
你这个错误是那本书的,什么错误?写具体点我在帮你查看下。
首页上一页 1 下一页尾页 1 条记录 1/1页
手机同步功能介绍
友情提示:以下图书配套资源能够实现手机同步功能
明日微信公众号
明日之星 明日之星编程特训营
客服热线(每日9:00-17:00)
400 675 1066
mingrisoft@mingrisoft.com
吉林省明日科技有限公司Copyright ©2007-2022,mingrisoft.com, All Rights Reserved长春市北湖科技开发区盛北大街3333号长春北湖科技园项目一期A10号楼四、五层
吉ICP备10002740号-2吉公网安备22010202000132经营性网站备案信息 营业执照