stretch

CSS background stretches to fill screen on Safari but not on iOS

做~自己de王妃 提交于 2019-12-11 04:52:36
问题 This CSS successfully stretches my background image to fill 100% of the screen area and not scroll on safari but not on iOS. How can I also prevent the image from scrolling on iOS? body { width: 100%; height: 100%; padding: 0; margin: 0; border: 0; background: url(../img/background.jpg) center repeat-x; background-size: auto 100%; background-attachment: fixed } 回答1: body { width: 100%; height: 100%; padding: 0; margin: 0; border: 0; background: url(../img/background.jpg) center repeat-x fixed

css - stretched and evenly spaced horizontal menu

﹥>﹥吖頭↗ 提交于 2019-12-11 03:09:38
问题 I hope, you can help me, I have a horizontal menu, my problem is the following: The first is normal stretch with table, the second is what I want: stretch + even gaps between texts . I achieved this with additional non breaking spaces, but it works only by fixed menu widths, so if I change the menu width I have to change the count of the nbsp characters. Is there any way to do this with css, and without those non breaking spaces? The count of the menupoints and the menu width can change, so I

Image with accordion effect

对着背影说爱祢 提交于 2019-12-11 02:15:18
问题 I have read in an image file to MATLAB and I am trying to stretch it in one direction, but a variable amount (sinusoidal). This would create an accordion affect on the image. I have toyed around with imresize, however that only resizes the image linearly. I would like the amount of "stretch" to vary for each image line. I tried to convey this with the following code: periods = 10; % Number of "stretch" cycles sz = size(original_image,2)/periods; s = 0; x = 0; for index = 1:periods B =

Custom Camera Preview Issue (Stretch)

微笑、不失礼 提交于 2019-12-10 19:07:36
问题 I'm having a problem with my camera app. My app has: 1) a CameraActivity.class and 2) a CameraPreview.class. CameraPreview implement a surfaceView where it's called from CameraActivity for the actual preview. (Also in CameraActivity I have the parameters) Now the problem: When the preview is starting the preview is stretched. I tried a lot of things (so many that I cannot recall) I need someone to tell me what to write and where. Thanks in advance. Here is the CameraActivity (Not all the code

Middle div with 100% in CSS? [duplicate]

耗尽温柔 提交于 2019-12-08 01:08:25
问题 This question already has answers here : Closed 7 years ago . Possible Duplicate: CSS - percentage height I can't get the middle div of 3 divs to fit 100% of available space. <body> <div id="container"> <div id="header"> </div> <div id="content"> </div> <div id="footer"> </div> </div> </body> My CSS is: html, body { margin: 0; padding: 0; border:1px; vertical-align:top; font-family:"Trebuchet MS", Arial, Helvetica, sans-serif; font-size:14px; color:#333; height: 100%; } #container { height:

Resizing images

£可爱£侵袭症+ 提交于 2019-12-07 14:24:31
问题 I'm working on a forum application in PHP. In signature field I have " <img src='randomimage.png'><br>bla blah " If an image is bigger than the field it stretches my tables and looks bad. Is there any way to re size the image if its too big? Sorry for my poor English and thank you for reading Edit: The thing is that it's not only the image. It's the image and the text "the big text". Respectfully, Tom 回答1: PHP... You can re-size images with the gdlibrary (See: PHP/GD - Cropping and Resizing

Java Printing Font Stretch

核能气质少年 提交于 2019-12-07 11:41:33
问题 I just got the printer to work in java how I need it too, but there's one last problem I need to solve. When it prints, the font's width is rather stretched, and not crisp and clear like it should be. Here is my code my the actual drawing to the paper: FontMetrics metrics = graphics.getFontMetrics(font); int lineHeight = metrics.getHeight(); arrangePage(graphics, pageFormat, lineHeight); if (page > pageBreaks.length){ return NO_SUCH_PAGE; } Graphics2D g = (Graphics2D) graphics; g.translate

How do I make a StringGrid's columns fit the grid's width?

淺唱寂寞╮ 提交于 2019-12-07 04:18:51
问题 I've been looking for a long time for a solution without any luck. Does anyone know a simple way to do that? I would like to stretch for example the second colum of my grid to fit the grid's width! 回答1: Use the ColWidths property, like so: with StringGrid1 do ColWidths[1] := ClientWidth - ColWidths[0] - 2 * GridLineWidth; And for a more robust and flexible solution, take all fixed columns into account and parameterize the column index: procedure SetColumnFullWidth(Grid: TStringGrid; ACol:

How do android:shrinkColumns and android:stretchColumns work?

两盒软妹~` 提交于 2019-12-07 03:02:16
问题 I can set android:shrinkColumns and android:stretchColumns at TableLayout . For example: <TableLayout android:shrinkColumns="2,3" android:stretchColumns="1,3" android:layout_width="match_parent" android:layout_height="wrap_content"/> So how do this properties affects columns? 回答1: TableLayout can specify certain columns as shrinkable or stretchable by calling setColumnShrinkable()(xml:android:shrinkColumns) or setColumnStretchable()(xml:android:stretchColumns) . If marked as shrinkable , the

Middle div with 100% in CSS? [duplicate]

こ雲淡風輕ζ 提交于 2019-12-06 08:07:39
This question already has answers here : Closed 7 years ago . Possible Duplicate: CSS - percentage height I can't get the middle div of 3 divs to fit 100% of available space. <body> <div id="container"> <div id="header"> </div> <div id="content"> </div> <div id="footer"> </div> </div> </body> My CSS is: html, body { margin: 0; padding: 0; border:1px; vertical-align:top; font-family:"Trebuchet MS", Arial, Helvetica, sans-serif; font-size:14px; color:#333; height: 100%; } #container { height: 100%; width: 100%; } #header { height: 100px; width: 100%; background: #069; } #content { height: 100%;