Palitra Posted March 1, 2009 Report Share Posted March 1, 2009 Вот станичка http://palitra-oil.narod.ru/stoimost.htmlвот код из slideshow.jsObject.extend(this.props, props || {}); a = $('aro-' + this.props.n + 'a'); a.style.position = 'absolute'; a.style.border = 'double 5px saddlebrown '; a.style.left = '1280px'; a.style.top = '-680px'; img = a.cloneNode(true); img.id = 'aro-' + this.props.n + 'b'; img.style.zindex = '100'; div = a.parentNode; div.style.display = 'block'; div.style.position = 'absolute'; div.style.border = 'solid 1px black'; div.style.left = '-800px'; div.style.top = '800px'; div.style.width = a.width + 'px'; div.style.height = a.height + 'px'; div.appendChild(img);вот код из stoimost.html.block1 { max-width: 950px; min-width: 650px; width: 950px; max-height: 900px; min-height: 750px; height: 900px; background: #EDE7E2; padding-left: 7px; border: double 5px saddlebrown; float: none; margin: 0px auto; position: relative; left: 0px; }#layer1, #layer2, { position: relative; } #layer1, { width: 950px; height: 900px; left: 0px; } #layer2,{ } #layer1 { z-index: 1; } #layer2 { z-index: 2; }Сейчас сделал смотрится нормально только при разрешении 1680/1050при меньшем картинка естественно уходит вправопробую разные варианты , но ИЕ таблица уходит влево, не знаю уже чего наворотить Quote Link to comment Share on other sites More sharing options...
0 Palitra Posted March 1, 2009 Author Report Share Posted March 1, 2009 (edited) Спасибо разобрался, margin: 0 auto; , id="center"тему можно грохать Edited March 1, 2009 by Palitra Quote Link to comment Share on other sites More sharing options...
Question
Palitra
Вот станичка http://palitra-oil.narod.ru/stoimost.html
вот код из slideshow.js
Object.extend(this.props, props || {});
a = $('aro-' + this.props.n + 'a');
a.style.position = 'absolute';
a.style.border = 'double 5px saddlebrown ';
a.style.left = '1280px';
a.style.top = '-680px';
img = a.cloneNode(true);
img.id = 'aro-' + this.props.n + 'b';
img.style.zindex = '100';
div = a.parentNode;
div.style.display = 'block';
div.style.position = 'absolute';
div.style.border = 'solid 1px black';
div.style.left = '-800px';
div.style.top = '800px';
div.style.width = a.width + 'px';
div.style.height = a.height + 'px';
div.appendChild(img);
вот код из stoimost.html
.block1 {
max-width: 950px;
min-width: 650px;
width: 950px;
max-height: 900px;
min-height: 750px;
height: 900px;
background: #EDE7E2;
padding-left: 7px;
border: double 5px saddlebrown;
float: none;
margin: 0px auto;
position: relative;
left: 0px;
}
#layer1, #layer2, {
position: relative;
}
#layer1, {
width: 950px;
height: 900px;
left: 0px;
}
#layer2,{
}
#layer1 { z-index: 1; }
#layer2 { z-index: 2; }
Сейчас сделал смотрится нормально только при разрешении 1680/1050
при меньшем картинка естественно уходит вправо
пробую разные варианты , но ИЕ таблица уходит влево, не знаю уже чего наворотить
Link to comment
Share on other sites
1 answer to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.