zoukankan      html  css  js  c++  java
  • CSS表单2 组件排版

    <!DOCTYPE html>
    <html>
        <head>
            <title>单选按钮对齐</title>
            <style type="text/css">
                div {
                    margin: 10px;
                    padding-bottom: 10px;
                    max-360px;
                }
                .title {
                    float: left;
                     100px;
                    text-align: right;
                    padding-right: 10px;}
                .submit {
                    text-align: right;}
            </style>     
        </head>
        <body>
        <h1>软件开发,成就梦想</h1>
        <h2>学编程,上利永贞网 https://www.liyongzhen.com/</h2
            <form  method="post">
                <div>
                    <label for="name" class="title">用户名:</label>
                    <input type="text" id="name" name="name" />
                </div>
                <div>
                    <label for="password" class="title">密码:</label>
                    <input type="password" id="password" name="password" />
                </div>
                <div>
                    <span class="title">性别:</span>
                    <input type="radio" name="gender" id="male" value="M" />
                    <label for="male">男</label>
                    <input type="radio" name="gender" id="female" value="F" />
                    <label for="female">女</label><br />
                </div>
                <div class="submit">
                    <input type="submit" value="提交" id="submit" />
                </div>
            </form>
        </body>
    </html>
  • 相关阅读:
    125-PHP类__set()魔术方法
    124-PHP类析构函数
    123-PHP类构造函数
    122-PHP类成员函数(三)
    121-PHP类成员函数(二)
    120-PHP调用成员方法并将不同类的对象做为参数
    119-PHP调用private成员的方法
    118-PHP调用带参数的成员方法
    117-PHP在外部无法调用private类成员函数
    HDU-2045 不容易系列之(3)—— LELE的RPG难题 找规律&递推
  • 原文地址:https://www.cnblogs.com/lsyw/p/10722551.html
Copyright © 2011-2022 走看看