如何设置表单框的大小?

ale*_*lex 1 html php forms

我正在使用这种形式,它在Dreamweaver中应该出现,但是当我在网站上使用它时它再次大.该网站通过include作为动态内容(php)加载.

<form action="index.php" method="get">
        <input type="hidden" name="content" value="home" />
        <label>Go to
          <input style height="20" width="40" type="numeric" name="page" />
        </label>
        <input type="submit" value="Go" />
      </form>
Run Code Online (Sandbox Code Playgroud)

我感谢任何帮助!

Ali*_*aru 6

style="width:Npx; height:Mpx;"在需要的地方添加支持已弃用widthheightHTML的属性.

例:

<form action="index.php" method="get">
    <input type="hidden" name="content" value="home" />
    <label>Go to
        <input style="height:20px; width:40px" type="numeric" name="page" />
    </label>
    <input type="submit" value="Go" />
</form>
Run Code Online (Sandbox Code Playgroud)