twitter-bootstrap-3

textboxes are empty on postback with bootstrap modal asp.net

試著忘記壹切 提交于 2020-01-12 07:55:45
问题 I am using bootstrap modal in my asp.net page like this: <div id="myModal" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true"> <asp:UpdatePanel ID="ModalUpdatePanel" runat="server" UpdateMode="Conditional"> <Triggers> <asp:AsyncPostBackTrigger ControlID="btnRegister" EventName="Click" /> </Triggers> <ContentTemplate> <p> textboxes here <div class="popup-footer-wrapper"> <div class="popup-footer-left"> <%-- <input type="submit" class="login

Bootstrap 3.0 scrollspy responsive offsets

拈花ヽ惹草 提交于 2020-01-12 05:24:09
问题 I'm trying to get Bootstrap's scrollspy to work reliably on a responsive site on which the top navbar's height changes according to the width of the media/browser. So instead of hardcoding the offset on the data-offset attribute I'm setting it dynamically through Javascript initialization like this: $('body').scrollspy({ offset: 70, target: '#nav' }); For wide layouts (i.e. Bootstrap -lg) it works fine but for narrower layouts there seems to be an "accumulating" offset in effect. In other

Bootstrap 3.0 scrollspy responsive offsets

你。 提交于 2020-01-12 05:24:05
问题 I'm trying to get Bootstrap's scrollspy to work reliably on a responsive site on which the top navbar's height changes according to the width of the media/browser. So instead of hardcoding the offset on the data-offset attribute I'm setting it dynamically through Javascript initialization like this: $('body').scrollspy({ offset: 70, target: '#nav' }); For wide layouts (i.e. Bootstrap -lg) it works fine but for narrower layouts there seems to be an "accumulating" offset in effect. In other

How to scale image to fit the container?

柔情痞子 提交于 2020-01-11 18:11:19
问题 I have an image list, I want images scaled into their containers which have same size. like this: I created a jsfiddle <div class="container"> <div class="row"> <div class="col-xs-3"> <a href="#" class="thumbnail"> <img src="http://exmoorpet.com/wp-content/uploads/2012/08/cat.png"> </a> </div> <div class="col-xs-3"> <a href="#" class="thumbnail"> <img src="http://www.nose2tail.co.uk/cat-matlock-derbyshire.jpg"> </a> </div> <div class="col-xs-3"> <a href="#" class="thumbnail"> <img src="http:/

How to scale image to fit the container?

扶醉桌前 提交于 2020-01-11 18:10:13
问题 I have an image list, I want images scaled into their containers which have same size. like this: I created a jsfiddle <div class="container"> <div class="row"> <div class="col-xs-3"> <a href="#" class="thumbnail"> <img src="http://exmoorpet.com/wp-content/uploads/2012/08/cat.png"> </a> </div> <div class="col-xs-3"> <a href="#" class="thumbnail"> <img src="http://www.nose2tail.co.uk/cat-matlock-derbyshire.jpg"> </a> </div> <div class="col-xs-3"> <a href="#" class="thumbnail"> <img src="http:/

webpack with bootstrap.css not work

纵然是瞬间 提交于 2020-01-11 11:53:06
问题 This is my webpack.config.js file: var ExtractTextPlugin = require('extract-text-webpack-plugin'), webpack = require('webpack'); module.exports = { entry: [ './src/app.js', ], output: { path: __dirname + '/../web/js', filename: 'build.js', }, module: { loaders: [ { test: /\.js$/, exclude: /node_modules/, loader: 'babel-loader' }, { test: /\.css$/, loader: ExtractTextPlugin.extract('style-loader', 'css-loader') }, { test: /\.(png|woff|woff2|eot|ttf|svg)$/, loader: "url?limit=5000" } ] },

Disable Twitter Bootstrap Button Group

我是研究僧i 提交于 2020-01-11 08:27:07
问题 I have a button group on a page that is used for a selection. After the selection is made I want the button group to still be visible so the user can see the selection they made, but I don't want them to be able to use it anymore. Is there a way to disable to the button group? <div class="btn-group-vertical"> <button type="button" class="btn btn-primary btn-lg">Option 1</button> <button type="button" class="btn btn-primary btn-lg">Option 2</button> <button type="button" class="btn btn-primary

How to make text inside a button transparent on hover? background should remain the same though

。_饼干妹妹 提交于 2020-01-11 07:43:10
问题 How can one make the text inside a button transparent on hover? the background should remain the same though. I tried opacity:0; but it made the whole button invisible. Help. I tried the below code. <style> .btn:hover { background-color: #ededed !important; color: #3c3c3c !important; opacity:0; } </style> <button class=" btn btn-success btn-lg">test button</button> 回答1: You need to use an rgba(color,color,color,opacity); for the color rule. Try this fiddle: https://jsfiddle.net/reala/5xq3mj66

Vertically center CSS rule works for row but not for column in bootstrap3

こ雲淡風輕ζ 提交于 2020-01-11 04:08:09
问题 I am trying to use the following CSS rules to vertically center aligned content in bootstrap 3 - .center { display:flex; align-items:center !important; background-color:red; text-align:center; } @media ( min-width:768px ) { .center { display:flex; align-items:center !important; background-color:red; text-align:center; } } @media ( min-width: 992px ) { .center { display:flex; align-items:center !important; background-color:red; text-align:center; } } @media ( min-width: 1200px ) { .center {

How to open a tab from external link?

不羁岁月 提交于 2020-01-10 19:49:49
问题 I am using Bootstrap 4 for my web page, I am facing problem with the nav-tabs. I need to open a Forget Password Tab from the Login Tab Content page via hyperlink there. Below code is working for me in Bootstrap 3 but not in Bootstrap 4 <ul class="nav nav-tabs" role="tablist"> <li class="nav-item"><a class="nav-link active" href="#log-in" data-toggle="tab">Log in</a></li> <li class="nav-item"><a class="nav-link" href="#forgot-password" data-toggle="tab">Forgot password</a></li> <li class="nav