HTML页面选择

时间:2014-07-22 05:48:53

标签: javascript twitter-bootstrap

我正在编写bootstrap 3.0中的联系页面,问题是当我在联系表单中输入一些值时,尝试用鼠标或按下选择输入的值 CTRL + SHIFT +左箭头键,没有选择。我不知道为什么。有人可以帮我解决这个问题吗?

谢谢你。

下面是我的联系表格的代码。

<div class="container">
        <div class="row">

            <div class="col-md-8 things">
                <div class="well well-sm">
                    <form action="send.php" method="POST" >
                    <div class="row">
                        <div class="col-md-6">
                            <div class="form-group">
                                <label for="name">
                                    Name</label>
                                <input name="name" type="text" class="form-control" id="name" placeholder="Enter name" required="required" />
                            </div>
                            <div class="form-group">
                                <label for="email">
                                    Email Address</label>
                                <div class="input-group">
                                    <span class="input-group-addon"><span class="glyphicon glyphicon-envelope"></span>
                                    </span>
                                    <input name="email" type="email" class="form-control" id="email" placeholder="Enter email" required="required" /></div>
                            </div>

                            <div class="form-group">
                                <label for="Phone">
                                    Phone Number</label>
                                <div class="input-group">
                                    <span class="input-group-addon"><span class="glyphicon glyphicon-phone"></span>
                                    </span>
                                    <input name="phone" type="Phone" class="form-control" id="phone" placeholder="Enter Contact number" required="required" /></div>
                            </div>


                        </div>
                        <div class="col-md-6">
                            <div class="form-group">
                                <label for="name">
                                    Message</label>
                                <textarea name="message" id="message" class="form-control" rows="9" cols="25" required="required"
                                    placeholder="Message"></textarea>
                            </div>
                        </div>
                        <div class="col-md-12">

                           <button type="submit" class="btn btn-success pull-right" id="btnContactUs">
                                Send Message</button>

                            <button type="reset" class="btn btn-success pull-right" id="btnReset">
                                Reset</button>

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

1 个答案:

答案 0 :(得分:0)

我在这里重新创建了代码:

http://codepen.io/anon/pen/EypHn

似乎工作正常。

确保您的代码正确无误。

例如:

   <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js">         </script>
    <!-- Include all compiled plugins (below), or include individual files as needed -->
     <script src="//maxcdn.bootstrapcdn.com/bootstrap/3.2.0/js/bootstrap.min.js"></script>

希望有所帮助。