twitter-bootstrap-3

Bootstrap scrollspy when accessing from another page

删除回忆录丶 提交于 2020-01-23 13:06:20
问题 Im trying to link to a specific section of my home page while maintaining a scroll spy feature. With this code: <li><a href="#sec1">About</a></li> the scrollspy is functioning but if I try to access it from a page other than my home page it just adds "#sec1" to the current page's url, to no effect. If I change it to: <li><a href="/#sec1">About</a></li> It takes me to the correct section on the home page, but the scrollspy function no longer works. js code $(function(){/* smooth scrolling for

how to disable specific date range in bootstrap daterangepicker?

自闭症网瘾萝莉.ら 提交于 2020-01-23 01:03:37
问题 I want to disable specific date range in bootstrap daterangepicker. I need to use bootstrap daterangepicker which provides me the option of restricting the specific date range. 回答1: To disable dates, use datesDisabled method to provide an array. Some dates are disabled in this CodePen. $("#picker").datepicker({ datesDisabled:["11/24/2016","11/28/2016","12/02/2016","12/23/2016"] }); EDIT Previous answer was for Bootstap DatePicker... Sorry for the misreading, my bad. Here is what I have found

css “background-image” shows unwanted border, img “src” does not

半城伤御伤魂 提交于 2020-01-22 17:32:48
问题 Getting started with Twitter Bootstrap, I ran into a strange problem of which I can't figure out the cause. When I render an image using: <img class="img-rounded" id="logo" /> and in CSS: #logo { background-image: url(/Content/Images/logo.png); } The image is shown with a narrow 'border': Even though I can't find anything remotely related to this effect. The corners are open because of the img-rounded class. Rendering the image using: <img class="img-rounded" id="logo" src="~/Content/Images

Typeahead.js not working in Knockout 3 foreach binding

一个人想着一个人 提交于 2020-01-22 15:42:07
问题 I updated a web app to Bootstrap 3 and Knockout 3 and consequently lost the built in typeahead that was in Bootstrap 2. I added typeahead.js and it works great unless I have a typeahead within a Knockout 'foreach' binding. I included code that works and fails below along with the Javascript code for the typeahead and Bootstrap binding. Any ideas? <form role="form"> <div class="row"> <div class="col-sm-4 form-group"> <input type="text" class="form-control sectionNames" data-bind="value: name"

Bootstrap 3.1.0: affix too long

风格不统一 提交于 2020-01-22 12:42:13
问题 I am using Bootstrap 3.1.0 . When an "affix" gets too long for the viewport, it gets cut off, never showing bottom items. Is there a possibility to have Bootstrap's affix behave in a way that it is still possible for the user to scroll the complete affix from top to bottom? Problematic example: <div class="container"> <div class="row"> <div class="col-md-3"> <div class="list-group" id="sidebar"> <a href="#" class="list-group-item">Long</a> <a href="#" class="list-group-item">list</a> <a href=

Bootstrap 3.1.0: affix too long

核能气质少年 提交于 2020-01-22 12:41:26
问题 I am using Bootstrap 3.1.0 . When an "affix" gets too long for the viewport, it gets cut off, never showing bottom items. Is there a possibility to have Bootstrap's affix behave in a way that it is still possible for the user to scroll the complete affix from top to bottom? Problematic example: <div class="container"> <div class="row"> <div class="col-md-3"> <div class="list-group" id="sidebar"> <a href="#" class="list-group-item">Long</a> <a href="#" class="list-group-item">list</a> <a href=

Bootstrap datetimepicker don't work with readonly or disabled

风格不统一 提交于 2020-01-22 10:38:07
问题 I have a serious problem with bootstrap datetimepicker , Here is the jsfiddle : <br/> <!-- padding for jsfiddle --> <div class="row"> <div class="col-md-12"> <h6>datetimepicker1</h6> <div class="form-group"> <div class="input-group date" id="datetimepicker1"> <input type="text" class="form-control" > <span class="input-group-addon"><span class="glyphicon-calendar glyphicon"></span></span> </div> </div> </div> </div> The problem is that when i open my website in mobile, mobile keyboard

How to add close button to bootstrap card?

时光总嘲笑我的痴心妄想 提交于 2020-01-22 07:32:45
问题 I have a bootstrap card using the following code: <div class="card card-outline-danger text-center"> <span class="pull-right clickable" data-effect="fadeOut"><i class="fa fa-times"></i></span> <div class="card-block"> <blockquote class="card-blockquote"> <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.</p> <footer>Someone famous in <cite title="Source Title">Source Title</cite></footer> </blockquote> </div> </div> I am using the following code to get my

Dynamic speech bubble in CSS

被刻印的时光 ゝ 提交于 2020-01-21 05:42:04
问题 I'm trying to make something like this: I'd like to use pure CSS. Bootstrap v3 is already loaded. I've gotten pretty close with something like .bubble { position:relative; left: 15px; padding: 10px; background: #FFFFCC; margin: 5px 5px; max-width: 250px; border: #FFCC00 solid 1px; } .bubble:before { position:absolute; content: ""; top:15px;left:-10px; border-width: 10px 15px 10px 0px; border-color: transparent #FFFFCC; border-style: solid; } But the result is not quite what I'm looking for. I

Bootstrap: set initial radio button checked in HTML

£可爱£侵袭症+ 提交于 2020-01-21 02:37:17
问题 I'm using Bootstrap's JavaScript buttons to style some radio buttons, and I don't seem to be able to set an initial button as checked. Here is my code: <div class="btn-group" data-toggle="buttons"> <label class="btn btn-info"> <input checked="checked" type="radio" id="match-three" name="options">Three numbers </label> <label class="btn btn-info"> <input type="radio" name="options" id="match-four">Four numbers </label> </div> The first button has checked="checked" , but it isn't being styled