两个相互靠近的场地

时间:2017-12-11 22:56:28

标签: php html css

我需要将字段集设置在彼此附近......

这个代码,plzzzz帮助我需要它到我的项目....

我该怎么办?!!

还有一件事我怎样才能将任何输入文字设置为maxlength?!

isscalar(x)

1 个答案:

答案 0 :(得分:1)

的变化:

  • Wrap your fieldsets in a container并将其显示为display:flex属性。
  • 在输入中添加maxlength="value"的属性。例如:在此代码中,我们将其设置为值20,因此用户名字段中不能超过20个字符。

.f-container {
  display: flex;
}
<html>

<head>
  <title>Main Page</title>
  <meta charset="windows-1256">
</head>

<body bgcolor="black" text="white" alink="aqua" vlink="aqua" link="aqua">
  <center>
    <b>Welcome <!-- put here the username-->&nbsp;You are<!-- Type-->&nbsp;So this all you can see and do ! :)</b><br>
    <div class="f-container">
      <fieldset style="width:70%">
        <!-- put here the any thing-->
        <br><br>
        <legend> Subjects Program | C# </legend>
      </fieldset>
      <fieldset style="width:30%">
        <!--admin controls-->
        <form action="" method="" name="delete">
          <input type="submit" name="" value="del"> &nbsp;&nbsp;&nbsp;&nbsp;
          <input type="text" name="username" style="text-align:center;width:100%;" placeholder="Put Username" maxlength="20" required>
          <hr>
        </form>
        <legend>Admin Controll</legend>
      </fieldset>
    </div>
  </center>
</body>

</html>