responsive-design

Respond.js not working in Internet Explorer 7, but H5BP example works

我的未来我决定 提交于 2020-01-14 06:42:09
问题 This responsive example from H5BP works well in Internet Explorer 7, Internet Explorer 8 and Internet Explorer 9, but when I use H5BP in my own project, it doesn't work in Internet Explorer 7 only. I've also tried omitting H5BP and using purely html5shiv + Respond.js (also with selectivzr.js), but I encounter the same issue (it does not work in Internet Explorer 7). And I cannot see any JavaScript/console error. Trying css3-mediaqueries.js I found that works well on Internet Explorer 7,

Gridster with Highcharts, make specific Chart smaller and recalculate

こ雲淡風輕ζ 提交于 2020-01-14 06:07:48
问题 i am building a dashboard with gridster and highcharts. If i resize the window and a widget with a highchart is bigger than the window, i want to resize it to make it smaller and gridster should recalculate the positions of the others. I tried this code to make a widget and its highchart smaller if its bigger than the windows width: $( ".dashboard > li" ).each(function() { var chart = $(this).children('div'); // console.log(' Window: ' + width); console.log(chart); if(chart.width() > width) {

Gridster with Highcharts, make specific Chart smaller and recalculate

北战南征 提交于 2020-01-14 06:05:08
问题 i am building a dashboard with gridster and highcharts. If i resize the window and a widget with a highchart is bigger than the window, i want to resize it to make it smaller and gridster should recalculate the positions of the others. I tried this code to make a widget and its highchart smaller if its bigger than the windows width: $( ".dashboard > li" ).each(function() { var chart = $(this).children('div'); // console.log(' Window: ' + width); console.log(chart); if(chart.width() > width) {

Trouble defining width of a responsive div

孤街醉人 提交于 2020-01-14 03:40:12
问题 I'm going to have trouble explaining what I mean but bear with me. First here's my fiddle https://jsfiddle.net/jmajnqej/20/ #freelancewrapper { width: calc(100% - 238px); height: 440px; background-color: #9D9D9D; position: absolute; right: 0; } I'm trying to get #freelancwrapper which is positioned inside .contentwrapper to hug the left of the .contentwrapper but at the same time have a greater width which extends to touch the right side of the viewport. (note: the fiddle currently works for

Thinking of the 'zoom' in responsive design

十年热恋 提交于 2020-01-13 11:45:06
问题 I am trying to do a responsive design with using HTML and CSS, here is my problem: If you only resize the window, the layout fits and if you only zoom, layout fits again, I have no problem with it, but if you zoom when the window is resized, layout breaks a little. Is it important to find a solution about this? I have no problem with 200%, 300% levels of zoom, mostly 400% or 500% make some problems to me. 回答1: In general, a responsive layout shouldn't need to be zoomed because it fits the

Use an image instead of a Bootstrap's glyphicon

喜你入骨 提交于 2020-01-12 12:50:49
问题 I would like to use a custom image in an input-group instead of a Bootstrap glyphicon without padding bottom (my image touch the bottom of the button), as you can see on this picture: Actually, I use Bootstrap's glyphicon glyphicon-search : <div class="input-group"> <input type="text" class="form-control" placeholder="Rechercher un produit, une référence ..."/> <span class="input-group-addon"> <span aria-hidden="true" class="glyphicon glyphicon-search"></span> <span class="hidden-xs text

Use an image instead of a Bootstrap's glyphicon

时间秒杀一切 提交于 2020-01-12 12:50:47
问题 I would like to use a custom image in an input-group instead of a Bootstrap glyphicon without padding bottom (my image touch the bottom of the button), as you can see on this picture: Actually, I use Bootstrap's glyphicon glyphicon-search : <div class="input-group"> <input type="text" class="form-control" placeholder="Rechercher un produit, une référence ..."/> <span class="input-group-addon"> <span aria-hidden="true" class="glyphicon glyphicon-search"></span> <span class="hidden-xs text

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 can I make JSSOR change its aspect ratio?

最后都变了- 提交于 2020-01-11 06:50:11
问题 I'm an art photographer in my spare time, and I'm working on a new design for my web site (note: NSFW) using a great open-source slideshow library, JSSOR. I want to fill the browser without changing the aspect ratio of the photos ( i.e. , center them as large as possible). A $FillMode of 1 works beautifully for this, but I'm having trouble creating code to respond to browser resize/rotation. Calculating the proper new height/width (browser minus footer text and a little margin) on resize is