感谢

解决方案 »

  1.   

    有可能是HTML标签不完全配对的原因,如果没有问题的话,那可能就是CSS设置的问题了
      

  2.   


    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <html>
      <head>
        <title>admin.html</title>

        <meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
        <meta http-equiv="description" content="this is my page">
        <meta http-equiv="content-type" content="text/html; charset=UTF-8">
        
        <!--<link rel="stylesheet" type="text/css" href="./styles.css">-->  </head>
      
      <body style="overflow: auto">
         <div style="display: inline; width:15% ;height:100% "></div>
         <div style="display: inline; width:2% ;height:100% ;background-color: #3A5F94; text-align: center; color: white;">点此切换</div>
         <div style="display: inline; width:83% ;height:100% "></div>
      </body>
    </html>还有点此切换怎么到垂直的中间
      

  3.   

    那是边距,你加一个样式吧。就可以解决你这个问题
    <style>
    body{
    margin:0px 0px 0px 0px
    }
    </style>
      

  4.   

    margin外边距
    padding内边距貌似。。
    给外边距调整为0
      

  5.   

    <html>
    <head>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
    <style>
    * {
    margin:0px;
    padding:0px;
    }
    html, body {
    width: 100%;
    }
    .d1 {
    float:left;
    display: block;
    width: 10%;
    height: 100%
    }
    .d2 {
    float:left;
    display: block;
    width: 80%;
    height: 100%;
    background-color: #3A5F94;
    text-align: center;
    color: white;
    }
    .d3{
    float:right;
    display: block;
    width: 10%;
    height: 100%;
    }
    </style>
    </head>
    <body>
    <div class="d1"></div>
    <div class="d2">点此切换</div>
    <div class="d3"></div>
    </body>
    </html>