пространство/разрывы между отделениями на веб-сайте при просмотре на iPhone/iPad

Я испытываю некоторые затруднения, заставляя мой веб-сайт отобразиться правильно при просмотре на iPhone и iPad. Веб-сайтом (даже близко к тому, чтобы быть законченным) является www.lzkconcepts.com.

Веб-сайт отображается правильно при просмотре на каждом настольном браузере я попробовал (сафари, хром, Firefox, IE), однако, на iPhone/iPad существует крошечный разрыв/пространство между отделением "содержания" и заголовком и нижним колонтитулом. Я использую фоновое изображение в заголовке, содержании и отделениях нижнего колонтитула для создания схемы страницы. В дополнение к разрывам между отделениями фоновое изображение содержания иногда "уменьшается" немного, так, чтобы оно привело в порядок не строку с заголовком и нижним колонтитулом на правой стороне экрана. Если я увеличиваю масштаб, хотя, все выстраивается в линию отлично. Вот снимок экрана, сделанный от iPhone...

http://s1139.photobucket.com/albums/n545/lhkimbrough/?action=view¤t=7198e49b.jpg&evt=user_media_share

Пристально смотрите на правую сторону ниже синей панели навигации.

Вот CSS (я знаю, что это очень грубо, я просто учусь),

@charset "UTF-8";
body {
 margin: 0;
 padding: 0;
 color: #000;
 font-family: Arial, Helvetica, sans-serif;
 font-size: 100%;
 line-height: 1.4;
 background-color: #CCC;
}
.TableAppName {
 color: #007EB4;
}

/* ~~ Element/tag selectors ~~ */
ul, ol, dl { /* Due to variations between browsers, it's best practices to zero padding and margin on lists. For consistency, you can either specify the amounts you want here, or on the list items (LI, DT, DD) they contain. Remember that what you do here will cascade to the .nav list unless you write a more specific selector. */
 padding: 0;
 margin: 0;
}
h1, h2, h3, h4, h5, h6, p {
 margin-top: 0;  /* removing the top margin gets around an issue where margins can escape from their containing div. The remaining bottom margin will hold it away from any elements that follow. */
 padding-right: 15px;
 padding-left: 15px; /* adding the padding to the sides of the elements within the divs, instead of the divs themselves, gets rid of any box model math. A nested div with side padding can also be used as an alternate method. */
}
a img { /* this selector removes the default blue border displayed in some browsers around an image when it is surrounded by a link */
 border: none;
}
/* ~~ Styling for your site's links must remain in this order - including the group of selectors that create the hover effect. ~~ */
a:link {
 color: #42413C;
 text-decoration: underline; /* unless you style your links to look extremely unique, it's best to provide underlines for quick visual identification */
}
a:visited {
 color: #6E6C64;
 text-decoration: underline;
}
#h-navbar {
 font-size: 95%;
 background-color: #CCC;
 background-image: url(images/navBarBlue.png);
 background-repeat: no-repeat;
 text-align: right;
 padding-right: 20px;
 color: #FFF;
 height: 39px;
 padding-top: 6px;
}
a:hover, a:active, a:focus { /* this group of selectors will give a keyboard navigator the same hover experience as the person using a mouse. */
 text-decoration: none;
}

/* ~~ this fixed width container surrounds the other divs ~~ */
.container {
 width: 874px; /* the auto value on the sides, coupled with the width, centers the layout */
 margin-top: 0;
 margin-right: auto;
 margin-bottom: 0;
 margin-left: auto;
 background-color: #CCC;
}

/* ~~ the header is not given a width. It will extend the full width of your layout. It contains an image placeholder that should be replaced with your own linked logo ~~ */
.header {
 background-color: #CCC;
 background-image: url(images/BannerFadedBlueAndOrangeText.png);
 background-repeat: no-repeat;
 height: 165px;
}

/* ~~ This is the layout information. ~~ 

1) Padding is only placed on the top and/or bottom of the div. The elements within this div have padding on their sides. This saves you from any "box model math". Keep in mind, if you add any side padding or border to the div itself, it will be added to the width you define to create the *total* width. You may also choose to remove the padding on the element in the div and place a second div within it with no width and the padding necessary for your design.

*/

.content {
 background-color: #CCC;
 background-image: url(images/contentFadedDark4.png);
 background-repeat: repeat-y;
 padding-left: 15px;
}
.contentBottom {
 padding: 0px;
 margin: 0px;
}

/* ~~ The footer ~~ */
.footer {
 background-color: #CCC;
 background-image: url(images/FooterFadedDark.png);
 background-repeat: no-repeat;
 text-align: right;
 font-size: 80%;
}

/* ~~ miscellaneous float/clear classes ~~ */
.fltrt {  /* this class can be used to float an element right in your page. The floated element must precede the element it should be next to on the page. */
 float: right;
 margin-left: 8px;
}
.fltlft { /* this class can be used to float an element left in your page. The floated element must precede the element it should be next to on the page. */
 float: left;
 margin-right: 8px;
}
.clearfloat { /* this class can be placed on a 
or empty div as the final element following the last floated div (within the #container) if the #footer is removed or taken out of the #container */ clear:both; height:0; font-size: 1px; line-height: 0px; } #h-navbar a, #h-navbar a:visited { text-decoration: none; color: #FFF; } #h-navbar a:hover { color: #ea6828; } .footer p { color: #0075A7; } .content h1 { color: #0074A9; font-weight: normal; font-size: 200%; font-style: normal; padding-top: 15px; padding-left: 23px; } .graytext { color: #333; }

И вот HTML






LZK Concepts








iPhone Apps

QuickGrader QuickGrader  
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Mauris neque quam, facilisis sed iaculis tempor, iaculis vitae purus. Mauris eros lacus, commodo ut feugiat vel, sollicitudin et elit. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur urna diam, iaculis ut commodo molestie, congue non lacus.
AppStore

 

QuickGrader Wish On A Star  
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Mauris neque quam, facilisis sed iaculis tempor, iaculis vitae purus. Mauris eros lacus, commodo ut feugiat vel, sollicitudin et elit. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur urna diam, iaculis ut commodo molestie, congue non lacus.
AppStore

 

QuickGrader Wish On A Star Free  
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Mauris neque quam, facilisis sed iaculis tempor, iaculis vitae purus. Mauris eros lacus, commodo ut feugiat vel, sollicitudin et elit. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur urna diam, iaculis ut commodo molestie, congue non lacus.
AppStore

У кого-либо есть идея, почему iPhone и iPad представляют страницу как это?

10
задан LanceK 19 October 2010 в 17:03
поделиться