Jump to content


Photo

Div Sobrepondo Toda Página


  • Faça o login para participar
9 replies to this topic

#1 Rauffer

Rauffer

    Normal

  • Usuários
  • 76 posts
  • Sexo:Masculino
  • Localidade:Garopaba - SC

Posted 29/08/2007, 09:09

Bom dia caros colegas.

Alguém pode me ajudar com este caso?

tenho o seguinte div:
<div style="position: absolute; width: 100%; height: 100%;background-color:#000000;"></div>

Funciona direitinho quando não se tem rolagem na página. Tendo rolagem, o div cobre toda a área que está sendo visualizada, porém não a que fica abaixo (por causa da rolagem).

Alguma dica? imagino que o problema esteja no "height: 100%"

Abraço.
Bacharel em Sistemas de Informação

#2 bimonti

bimonti

    Super Veterano

  • Usuários
  • 2654 posts
  • Sexo:Masculino

Posted 29/08/2007, 09:58

Movi para CSS.

Tenta ae, sem culpa nem dó:
position:fixed;

Talvez de pau no height de vez, mas não custa nada.
WebFórum - Equipe de Desenvolvimento - Monitor
Posted Image
Yeah I do have some stories, and it's true I want all the glory ...

#3 Paulo André

Paulo André

    Why so serious?

  • Ex-Admins
  • 5114 posts
  • Sexo:Masculino
  • Localidade:Belo Horizonte - MG
  • Interesses:O.Q.F.J.?

Posted 29/08/2007, 10:08

Olha, não sei se é gambiarra mas eu tinha este mesmo problema e peguei o mesmo script usado pelo lightbox que verifica o tamanho real da página, incluindo a parte que não exibe devido à barra de rolagem e depois redimenciona a <div>:

É algo assim:
function getPageSize(){
	
	var xScroll, yScroll;
	
	if (window.innerHeight && window.scrollMaxY) {	
		xScroll = document.body.scrollWidth;
		yScroll = window.innerHeight + window.scrollMaxY;
	} else if (document.body.scrollHeight > document.body.offsetHeight){ // all but Explorer Mac
		xScroll = document.body.scrollWidth;
		yScroll = document.body.scrollHeight;
	} else { // Explorer Mac...would also work in Explorer 6 Strict, Mozilla and Safari
		xScroll = document.body.offsetWidth;
		yScroll = document.body.offsetHeight;
	}
	
	var windowWidth, windowHeight;
	if (self.innerHeight) {	// all except Explorer
		windowWidth = self.innerWidth;
		windowHeight = self.innerHeight;
	} else if (document.documentElement && document.documentElement.clientHeight) { // Explorer 6 Strict Mode
		windowWidth = document.documentElement.clientWidth;
		windowHeight = document.documentElement.clientHeight;
	} else if (document.body) { // other Explorers
		windowWidth = document.body.clientWidth;
		windowHeight = document.body.clientHeight;
	}	
	
	// for small pages with total height less then height of the viewport
	if(yScroll < windowHeight){
		pageHeight = windowHeight;
	} else { 
		pageHeight = yScroll;
	}

	// for small pages with total width less then width of the viewport
	if(xScroll < windowWidth){	
		pageWidth = windowWidth;
	} else {
		pageWidth = xScroll;
	}


	arrayPageSize = new Array(pageWidth,pageHeight,windowWidth,windowHeight) 
	return arrayPageSize;
}

Aplicando o efeito:
pageSize = getPageSize();
document.getElementById("overlay").style.height = pageSize[1] + "px";

Flws...
;)Até mais

Edição feita por: Paulo André, 29/08/2007, 10:12.
Quebrei o layout? O.o

Paulo André G Rodrigues,
ex-administrador Fórum WMO.


www.CanalDev.com.br

#4 Rauffer

Rauffer

    Normal

  • Usuários
  • 76 posts
  • Sexo:Masculino
  • Localidade:Garopaba - SC

Posted 29/08/2007, 10:29

Show... Resoveu meu problema =)

vlw! :lol:
Bacharel em Sistemas de Informação

#5 Paulo André

Paulo André

    Why so serious?

  • Ex-Admins
  • 5114 posts
  • Sexo:Masculino
  • Localidade:Belo Horizonte - MG
  • Interesses:O.Q.F.J.?

Posted 29/08/2007, 10:40

Qual solução resolveu seu problema? :D Até mais

Edição feita por: Paulo André, 29/08/2007, 10:42.
'sou' não.. 'seu' =P

Paulo André G Rodrigues,
ex-administrador Fórum WMO.


www.CanalDev.com.br

#6 Rauffer

Rauffer

    Normal

  • Usuários
  • 76 posts
  • Sexo:Masculino
  • Localidade:Garopaba - SC

Posted 29/08/2007, 10:43

opa... foi mal...

a função getPageSize() quem resolveu ;)

abraço
Bacharel em Sistemas de Informação

#7 RonsisM

RonsisM

    Super Veterano

  • Usuários
  • 15724 posts
  • Sexo:Masculino
  • Localidade:Plovdiv

Posted 21/09/2017, 07:09

Zithromax Make You Sleepy cheap cialis Cheap Viagra Pills Free Shipping
Ciao Is 10 Mg Online Propecia Afectivo
100 Mg Viagra Pfizer <a href=http://cialtobuy.com>generic cialis</a> Buy Alli Weight Loss Pills Online
Viagra Au Herbes cialis Nizagara Online Ordine Kamagra 100mg Viagra Pfizer Uso cheap cialis Cialis 5 Mg Cura

#8 RonsisM

RonsisM

    Super Veterano

  • Usuários
  • 15724 posts
  • Sexo:Masculino
  • Localidade:Plovdiv

Posted 01/11/2017, 05:47

Levitra Derniere Minute cialis price Cephalexin Feline Viagra Online Forum
Propecia Merck Serono Kamagra Bestellen Und Kaufen Acheter Priligy Canada cialis Acquistare Kamagra Clermont Viagra Canada. Shop

#9 RonsisM

RonsisM

    Super Veterano

  • Usuários
  • 15724 posts
  • Sexo:Masculino
  • Localidade:Plovdiv

Posted 22/11/2017, 06:59

Mail Order Amoxicillin Propecia Generic Finasteride Amoxicillin Dosage 500 Mg viagra online prescription Amoxicillin Effect On Kidneys
Amoxicillin Abnormal Dreams Keflex 750 viagra Stendra Priligy Finasteride Prezzo Propecia Generico
Cheap Brand Name Viagra Online buy cialis Nizagara 150 Generic Viagra Sample Pack Antabuse Disulfiram Online

#10 JeffMalm

JeffMalm

    Super Veterano

  • Usuários
  • 12254 posts
  • Sexo:Feminino
  • Localidade:Mount Carey

Posted 10/02/2023, 11:23

Celebrating Life After Breast Reconstruction where to buy diuretic lasix Its speed can not catch diabetes medication used with diet and exercise to improve glycemic control up with ordinary people
ROIs were overlaid with the original image to check for detection accuracy over the counter clomid substitute The absence of regulation of typical estradiol ER regulated genes by our MT ERs implies that activation of these genes requires nuclear localized ER and that modulation of some kinase cascades alone is insufficient for this gene regulatory activity
Side effects can happen soon after you start taking a medication or weeks to months later finasteride generic uk
J Urol 2005; 173 1471 56 will clomid help deca dick I will be stopping my tamoxifen and using lovenox after the surgery




1 user(s) are reading this topic

0 membro(s), 1 visitante(s) e 0 membros anônimo(s)

IPB Skin By Virteq