简体   繁体   English

引导程序 dateRangePicker 图标未显示

[英]bootstrap dateRangePicker icon not showing

I am trying, with dateRangePicker to have a calendar icon showing in the input box, so the user identify rapidly that this is a date field.我正在尝试使用 dateRangePicker 在输入框中显示一个日历图标,以便用户快速识别这是一个日期字段。 like on this page喜欢这个页面

在此处输入图片说明

Unfortunatly, there is no HTML offered for this example so I took the code from the F12 console i tried it in my code:不幸的是,此示例没有提供 HTML,因此我从 F12 控制台获取了代码,并在我的代码中进行了尝试:

<div class="row">
    <div class="col-md-4 col-md-offset-2 demo">
        <h4>Your Date Range Picker</h4>
        <input type="text" id="dateRange" class="form-control">
        <i class="glyphicon glyphicon-calendar fa fa-calendar"></i>
    </div>
</div>

This how it looks on my page.这是它在我的页面上的样子。

在此处输入图片说明

Would be fun if it was clear in the doc how to show this icon.如果文档中清楚如何显示此图标会很有趣。 It could have been an option to turn on or off this feature, without having to manually add some html in your code.可以选择打开或关闭此功能,而无需在代码中手动添加一些 html。

Please help!请帮忙!

use this if you use bootstrap....如果您使用引导程序,请使用它....

<div class="input-group">
                  <div class="input-group-addon">
                    <i class="fa fa-calendar"></i>
                  </div>
                  <input type="text" class="form-control" data-inputmask="'alias': 'dd/mm/yyyy'" data-mask="">
                </div>

or see this https://almsaeedstudio.com/themes/AdminLTE/pages/forms/advanced.html或查看此https://almsaeedstudio.com/themes/AdminLTE/pages/forms/advanced.html

think this will help you...认为这会帮助你...

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM