🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: pl.comp.lang.javascript
Article #39550

Re: rozmiar diva

#39550
From: Marek Bedkowski
Date: Fri, 21 Apr 2006 09:56
23 lines
1634 bytes
Użytkownik "Dariusz Rogalski" 
<d.rogalski@spamerzy.wynocha.ksiaznica.szczecin.pl> napisał w wiadomości 
news:1btt8xgnb04ya$.z2uvfiro4hfm.dlg@40tude.net...
> Witam,
>
> mam problem z pobraniem długości diva
> próbuję skopiować wymiary jednego na drugi
> robię to tak
>
> function formatRows()
> {
> var Col1 = document.getElementById('cell_1_1');
> var ColHead1 = document.getElementById('header1');
> var width = parseInt(Col1.style.width) + 'px';
> ColHead1.style.width = width;
> }
> jakaś podopwiedź, słówka kluczowe do googla?

offsetWidth i offsetHeight

Jezeli chcesz zrobic tabelke, ktora ma header nieruchomy to lepiej tak: 
http://bedkowski.pl/css/tbodyscroll/ 
Technical Details
Message-ID: <e2aa7r$3sb$1@inews.gazeta.pl>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.gazeta.pl!not-for-mail
References: <1btt8xgnb04ya$.z2uvfiro4hfm.dlg@40tude.net>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.gazeta.pl!not-for-mail
From: "Marek Bedkowski" <marek.bedkowski@ciao-group.com>
Newsgroups: pl.comp.lang.javascript
Subject: Re: rozmiar diva
Date: Fri, 21 Apr 2006 11:56:00 +0200
Organization: "Portal Gazeta.pl -> http://www.gazeta.pl"
Lines: 25
Message-ID: <e2aa7r$3sb$1@inews.gazeta.pl>
References: <1btt8xgnb04ya$.z2uvfiro4hfm.dlg@40tude.net>
NNTP-Posting-Host: host-ip106-211.crowley.pl
X-Trace: inews.gazeta.pl 1145613371 3979 62.111.211.106 (21 Apr 2006 09:56:11 GMT)
X-Complaints-To: usenet@agora.pl
NNTP-Posting-Date: Fri, 21 Apr 2006 09:56:11 +0000 (UTC)
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2869
X-Priority: 3
X-RFC2646: Format=Flowed; Original
X-Newsreader: Microsoft Outlook Express 6.00.2900.2869
X-User: marek.bedkowski
X-MSMail-Priority: Normal
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit