twitter-bootstrap-3

Bootstrap: set initial radio button checked in HTML

社会主义新天地 提交于 2020-01-21 02:37:04
问题 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

Bootstrap icons are loaded locally but not when online

拈花ヽ惹草 提交于 2020-01-18 04:45:33
问题 Basically I got the following HTML: <button class="disabled btn-primary btn" type="submit" disabled=""> <i class="glyphicon glyphicon-ban-circle"></i> Log in </button> Locally the icon displays fine on the button but when I run on Windows Azure I get the following button with a weird looks prefix instead of the icon: Looking into this, I realized that when accessing my website locally the browser would attempt to load the file: /Content/fonts/glyphicons-halflings-regular.woff (which it did

Table headers overlapping content on second page when converting to PDF with wkhtmltopdf

有些话、适合烂在心里 提交于 2020-01-17 12:13:05
问题 I have a table that is spanning across multiple pages. The thead is being repeated on the second page and is overlapping the content. I am using bootstrap and have ensured the css from other wkhtmltopdf overlap solutions are implemented in my page. thead { display: table-header-group; } tfoot { display: table-row-group; } tr { page-break-inside: avoid; } table, tr, td, th, tbody, thead, tfoot, td div { page-break-inside: avoid !important; } 回答1: The table was wrapped in a <div class="table

How to make buttons responsive in bootstrap?

时间秒杀一切 提交于 2020-01-17 10:22:28
问题 I have this code: <html> <head> <link rel="stylesheet" type="text/css" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css" media="screen" /> <style> .btn-file { position: relative; overflow: hidden; } .btn-file input[type=file] { position: absolute; top: 0; right: 0; min-width: 100%; min-height: 100%; font-size: 100px; text-align: right; filter: alpha(opacity=0); opacity: 0; outline: none; background: white; cursor: inherit; display: block; } </style> </head> <body>

How to make buttons responsive in bootstrap?

落爺英雄遲暮 提交于 2020-01-17 10:21:22
问题 I have this code: <html> <head> <link rel="stylesheet" type="text/css" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css" media="screen" /> <style> .btn-file { position: relative; overflow: hidden; } .btn-file input[type=file] { position: absolute; top: 0; right: 0; min-width: 100%; min-height: 100%; font-size: 100px; text-align: right; filter: alpha(opacity=0); opacity: 0; outline: none; background: white; cursor: inherit; display: block; } </style> </head> <body>

How to make buttons responsive in bootstrap?

假装没事ソ 提交于 2020-01-17 10:21:20
问题 I have this code: <html> <head> <link rel="stylesheet" type="text/css" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css" media="screen" /> <style> .btn-file { position: relative; overflow: hidden; } .btn-file input[type=file] { position: absolute; top: 0; right: 0; min-width: 100%; min-height: 100%; font-size: 100px; text-align: right; filter: alpha(opacity=0); opacity: 0; outline: none; background: white; cursor: inherit; display: block; } </style> </head> <body>

Handsontable + Bootstrap tooltip for column header

北城以北 提交于 2020-01-17 09:20:30
问题 I am trying to add a Bootstrap tooltip to a Handsontable header. My table instance is named "hot". The relevant JS part is below: <script> hot.updateSettings({ colHeaders: ['Columname1', '<span style="color:white;" class="tooltip-button" data-toggle="tooltip" data-placement="bottom" title="Column description"> Columnname2 </span>'] }); $(document).ready(function(){ $('[data-toggle="tooltip"]').tooltip({trigger : 'hover', delay: {show: 700, hide: 100}}); }); </script> I also have a CSS style

Why am I getting a Google Map JavaScript error in my WordPress theme?

喜欢而已 提交于 2020-01-17 07:52:45
问题 I'm missing something when trying to add a Google Map to a WordPress theme. When I use the plugin Debug Bar for WordPress development it throws a JavaScript error of: Script error. line 0 I'm unsure where the issue falls and at the beginning after doing research I thought my issue was when I didn't have async defer when calling the Map's API: <script async defer src="https://maps.googleapis.com/maps/api/js?key=YOUR_API_KEY&callback=initMap"></script> after reading: Step 2: Add a map with a

How do I add 'active' class dynamically for Bootstrap 3 nav-tabs?

余生颓废 提交于 2020-01-17 05:32:26
问题 I am using Bootstrap 3 with asp.net Web Forms with Master Page. In my Master Page I have vertical nav-tabs on the right of the page which slide when clicking a button. Within those individual nav-tabs I have default horizontal Bootstrap nav-tabs . My problem is, I want to dynamically add/remove the active class using using Javascript. In the vertical tabs I have removed the class="active" initially and want to add it to the individual vertical nav tab on clicking it. And when I click on it

Bootstrap pagination an inline implementation

眉间皱痕 提交于 2020-01-17 00:27:34
问题 Again sitting with bootstrap implementation for my project. I'm implementing bootstrap pagination(data-table) and bootstrap inline edit(xeditable). Both the files have been integrated successfully The header file are as follows: <link rel="stylesheet" type="text/css" href="css/bootstrap.min.css"> <link rel="stylesheet" type="text/css" href="css/DT_bootstrap.css"> <link href="css/bootstrap-editable.css" rel="stylesheet"/> <script type="text/javascript" language="javascript" src="js/jquery-1.11