Jump to content
php.lv forumi
  • 0

Aprēķināt div'a pozīciju un nolikt to redzamu no scrollTop un citi


Sasa

Question

Situācija sekojoša iekš Facebooka Tab Page app'a ir fancyboxapp bilžu skatīšanas rīks. 

Un tā kad ir daudz bilžu un esmu noscroolējis lapu uz beigām tad man bilde tiek rādīta iFreima centrā un es neko neredzu man tā bilde jānobīda uz leju.

Facebook canvas piedāvā par sevi uzzināt šādu info:


clientHeight Integer

The height of the viewport in pixels

clientWidth Integer

The width of the viewport in pixels

offsetLeft Integer

The number of pixels between the left edge of the viewport and the left edge of your app's iframe

offsetTop Integer

The number of pixels between the top edge of the viewport and the top edge of your app's iframe

scrollLeft Integer

The number of pixels between the left edge of your iframe and the left edge of your iframe's viewport

scrollTop Integer

The number of pixels between the top edge of your iframe and the top edge of your iframe's viewport

 

Kā man visu to izmantojot nopozicionēt bildi kuru atveru man redzamajā ekrāna daļā?

 

 

 

Link to comment
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...