表单输入已禁用

时间:2013-10-31 16:36:46

标签: html forms

我的页面上有两个表单,我将第一个表单包装成一个新类只是为了将它限制为span5,然后表单现在水平相邻,但第一个不允许你点击进入或打开这些元素。

<div class="row">
                <div class="greybg-container">
                <div class="span5">
                <div id="login-container">
                        <div class="inner-content">
                            <h4>Login</h4>

                                <div class="basket-login"><div class="basket-login-text"><?php $seintro = new Page($db,'SiteElements','Login'); echo $seintro->row['pageCopy']; ?></div>
                                <form method="post" action="<?php echo HTTP_HOST; ?>Site/MyAccount/Login/?basketId=<?php echo $_REQUEST['basketId'] ? $_REQUEST['basketId'] : $basket->row['orderId']; ?>&amp;wishlist=<?php echo $_GET['wishlist']; ?>&amp;categoryId=<?php echo $_GET['categoryId']; ?>&addToBasketSize=<?php echo $_GET['addToBasketSize']; ?>">
                                <?php if ($errorLogin){ ?>
                                <span class="error"><?php echo $errorLogin; ?></span>
                                <?php } ?>

                                <table class="basket">
                                    <?php foreach($form_login as $each){ ?>
                                    <tr><td class="title"><?php $each->writeLabel(); ?></td>
                                    <td><?php $each->write(); ?></td></tr>
                                <?php } ?>
                                <tr>
                                    <td class="title">
                                        <label for="login_userSubmit"></label>
                                    </td>
                                    <td class="form_button">
                                        <input id="login_userSubmit" type="submit" size="" value="Send" onclick="" name="login_userSubmit">
                                        <br>
                                        <a class="grey-link" href="<?php echo HTTP_HOST; ?>Site/MyAccount/ForgotPassword">Forgot Password ?</a>
                                    </td>
                                </tr>
                                </table>
                            </form>
                        </div>
                    </div>
                </div>
            </div>

                    <div id="left">
                    <div class="inner-content">
                        <h4>Register</h4>

                           <div class="basket-login"><div class="basket-login-text"><?php $seintro = new Page($db,'SiteElements','Register'); echo $seintro->row['pageCopy']; ?><?php echo $page->row['pageCopy']; ?></div></div>           
                           <form method="post" enctype="multipart/form-data">

                                    <?php if (is_array($error)){ ?>
                                    <strong>Please Note :</strong> The following errors have occurred
                                        <ul>
                                        <?php foreach($error as $id=>$each){ ?>
                                            <li class="error"><?php $form_signup[$id]->writeLabel($each); ?></li>
                                        <?php } ?>
                                        </ul>
                                    <?php } ?>
                                    <table class="basket">
                                    <?php if($form_signup){ foreach($form_signup as $each){ ?>
                                        <tr>
                                            <td class="title"><?php $each->writeLabel(); ?></td>
                                            <td><?php $each->write(); ?></td>
                                    <?php } } ?>
                                    <tr>
                                        <td class="title">
                                            <label for="signup_submit"></label>
                                        </td>
                                        <td class="form_button">
                                            <input style="width:auto;" id="signup_submit" type="submit" size="" value="Continue Registration" onclick="document.getElementById('action_submit').value='1';document.submit();" name="signup_submit">
                                        </td>
                                    </tr>
                                    </table>

                        </form>

                    </div>
            </div>              
        </div>

第二种形式从div id =“left”开始。忽略它左边说的那个事实,就像你看到的那样,就是右边的形式。

http://bit.ly/19fegdi

1 个答案:

答案 0 :(得分:1)

Span5与右侧的形式重叠。添加以下css样式将修复它。

#left{
 float: left;
}