Bootstrap form layout, input box and icon alignment

1. First look at the screenshot
picture description

clipboard.png

I want to keep a straight line between the left side and the right side of the input box
and a straight line on the right

.

2. The static box
code of bootstrap is used as follows:


                                <div class="form-group">
                                    <label for="task_begintime" class="col-sm-3 control-label"></label>

                                    <div class="col-sm-9 input-group date " id="datepicker1" >

                                    <input type="text" class="form-control" id="task_begintime" name="task_begintime">
                                        <span class="input-group-addon col-sm-1">
                                            <i class="glyphicon glyphicon-calendar"></i>
                                        </span>
                                    </div>
                                </div>


                                <div class="form-group">
                                    <label for="task_endtime" class="col-sm-3 control-label"></label>

                                    <div class="col-sm-9">
                                        <input type="text" class="form-control" id="task_endtime" name="task_endtime">
                                    </div>
                                </div>

4. I don"t know much about the length setting and relative relationship of bootstrap. For friends you have met, please give me a hint

.
Mar.20,2021

A class affects "input-group"


look at bootstrap grid nesting to add div has been solved, the new problem is this

<div class="form-group">
                                    <label for="task_begintime" class="col-sm-3 control-label"></label>

                                    <div class="col-sm-9 input-group date row" id="datepicker1" >
                                        <div class="col-sm-11" style="margin-right: -15px">
                                           <input type="text" class="form-control" id="task_begintime" name="task_begintime">
                                        </div>
                                        <div class="col-sm-1" style="margin-left: -15px; margin-right:30px">
                                            <span class="input-group-addon">
                                            <i class="glyphicon glyphicon-calendar" style="font-size: 18px"></i>
                                            </span>
                                        </div>
                                    </div>
                                </div>

clipboard.png

margin-right

https://www.cnblogs.com/jiqin...
:


clipboard.png

if you encounter a similar problem, you can also refer to the link above, especially if alignment and other operations are required

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e5b61e-45621.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e5b61e-45621.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?