responsive

extjs apps on iphone

廉价感情. 提交于 2019-12-12 15:44:20
问题 This is an extjs single-page application which works fine in FF, IE, and Safari. There are several problems with viewing or using this extjs app in the iphone. The extjs panels/windows do not resize, as it would in a normal screen. When the user zooms out, the expanding viewing area is blanked out. An example image is below: Iphone does not recognize the combo box of the extjs. Unable to scroll down. Viewport Issue: The main issue is with the viewport. It does not scroll or zoom properly in

How to split an image responsive into two div blocks using css?

孤者浪人 提交于 2019-12-12 12:21:26
问题 I have an image which is responsive : <img class="img-responsive" src="img/image.jpg"/> I want to split it into two divs : <div class="slice s1"></div> <div class="slice s2"></div> or : <div class="slice s1"> <div class="slice s2"></div> </div> How can I do that dynamically or using css? I tried to do it setting the background-image and the background-position of the two div , but the new image is not the same, it's no longer responsive. 回答1: This is a cool question and doable. So long as

Keep image ratio using max-width and max-height in IE 11

微笑、不失礼 提交于 2019-12-12 07:17:15
问题 I'm trying to get an image to fit inside a container while keeping it's size ratio. The image should take full height or width depending on orientation. My solution does work on all browsers I've tested but IE11(works in 10 and 9 surprisingly). In IE 11 the image is cropped on the right. I'd like a pure css way if possible and I don't care about centering it. Here is the JSFiddle : https://jsfiddle.net/wagad0u8/ <div class="owl-item" style="width: 465px;"> <a class="img-flux" href="page1.html

Bootstrap Navbar Toggle Button Does Not Work [duplicate]

此生再无相见时 提交于 2019-12-12 06:38:37
问题 This question already has answers here : Bootstrap 4 - Toggle button not working [duplicate] (3 answers) Closed last year . I just created a new file and copy and pasted the Bootstrap Starting Code from its official site. But the problem is whenever I minimize the browser screen to test how this menu works in small devices, the menu toggle button does not seem to be working. As in this image shows, when I click on the button, it does not collapse and shows the menu items, somehow: So what's

How to make table responsive

折月煮酒 提交于 2019-12-12 05:37:20
问题 I have some table and I want to make it responsive when it show in width max 760. This is the table looks normal : And I want to make it like this if width of the screen is max 760 : In that table the last coloumn just appears in end of table not in each row. Anyone can help me to do that ? 回答1: Use this html & css code for make rsponsive table Check the Snippets is below . Use this css with media query max-width:760px or any width .responsive-table { margin:0px auto; width:500px; border: 1px

Responsive grid of squares within a responsive grid of squares

扶醉桌前 提交于 2019-12-12 05:33:37
问题 I am trying to make a grid of responsive squares, with each square in the grid containing another grid of responsive squares. Think of a sudoku board, which has 9 squares, each containing 9 squares. I started with this: Grid of responsive squares and used the flexbox answer, which was laid out here: https://jsfiddle.net/patrickberkeley/noLm1r45/3/ I originally thought that it would work if I just put another responsive square grid inside of the first one. But the content div just becomes 0px

multiple responsive owl carousel

对着背影说爱祢 提交于 2019-12-12 05:09:49
问题 i need to create multiple responsive owl carousel in some page, i need to works with Data Attributes. I work like this but i cant do responsive my carousel, jQuery var $carousel = $('.data-carousel[data-carousel]'); if ($carousel.length) { $carousel.each(function() { $(this).owlCarousel($(this).data('carousel')); }); } HTML <div class="owl-carousel data-carousel" data-carousel='{"margin": 10, "items": 4, "center": "true", "loop": true}'> <div class="item"><h1>1</h1></div> <div class="item">

Set background image with transparent color and also make the height of the image adapt to the content

余生颓废 提交于 2019-12-12 03:45:17
问题 .about { width: 100%; height: 300px; background-color: rgba(0,0,0,0.55); } I am trying to set a black color with 55% transparency to the image. Also I need the height of the image to be as long as the content. The content will be on some columns but at tablet and mobile resolution all the columns will go one under another so the content won't fit on the image. Also I need the tranparency to affect only the image and not the text. What is the best way to acheive this? Here is my Fiddle: fiddle

How to change options based on number of items in the carousel using Owl Carousel 2?

冷暖自知 提交于 2019-12-12 02:27:13
问题 I'm using Owl Carousel 2 on a project with dynamic content with an unlimited amount of slides that can be added. So there could be an instance where there is only three slides or an instance where there is six. My desired functionality is that if there is less than four slides (the carousel shows four items at a time), then add the mouseDrag: false and touchDrag: false options. Here is my JS: $('.owl-carousel').owlCarousel({ loop:false, margin:20, responsive : { // breakpoint from 0 up 0: {

How to style dynamically created elements with CSS

一笑奈何 提交于 2019-12-11 17:42:24
问题 I'm trying to make an APP, which allows me to add days to a table I have the following Code function addDay() { for (k = 1; k < 11; k++) { let div = document.createElement("div"); div.style.background = "red" div.style.color = "white" div.style.width = "40px" div.style.height = "20px" div.style.margin = "0.5px" div.style.textAlign = "center" div.style.borderRadius = "6px" div.setAttribute("class", "studentGrades") // div.setAttribute("class", "sgID" + k) div.className += " sgID" + k div