2013-06-25 567 views

回答

0

我覺得這是它:

<div class="container-fluid"> 
    <div class="row-fluid"> 
     <div class="span12"> 
      <input id="simpleInput" type="text" class="span3 datepicker" /> 
      <div class="control-group"> 
       <label class="control-label" for="dateTest">New Date:</label> 
       <div class="controls"> 
        <div class="input-append date datepicker"> 
         <input id="compInput" class="span6" type="text" /> <span class="add-on"><i class="icon-th"></i></span> 

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

使用

#target { 
    margin: 2em; 
} 

Live DEMO

0

您可以將dateTimePicker的定位更改爲左加入

pickerPosition: "bottom-left" 

嘗試這樣的:

$(function() { 
    $('#your_date_time_picker').datetimepicker({ 
     language: 'en', 
     pickerPosition: "bottom-left" 
    }); 
    }); 

其他定位選項有:

pickerPosition: "bottom-left" 
pickerPosition: "top-left" 
pickerPosition: "top-right"