HTML ADVANCED

 0    4 flashcards    mateuszsly
download mp3 print play test yourself
 
Question język polski Answer język polski
Pobieranie wysoości sekcji/taga:
const wysokoscSekcji1 = $('. sekcja1'). height(); Pobieranie wysoości sekcji/taga:
start learning
Pobieranie wysoości sekcji/taga:
1... height() - pobiera tylko wysokość 2... innerHeight() - wysokość i padding 3... outerHeight() - wysokość + border + padding 4... outerHeight(true) - wysokość + border + padding + mar
Sprawdzamy pobieramy wysokość elementu.
start learning
Sprawdzamy pobieramy wysokość elementu. const wysokoscSekcji1 = document. querySelector('. sekcja1'). clientHeight;
wysokość elementu html
start learning
. offsetHeight i. clientHeight to jest to samo.
. offsetTop
start learning
. offsetTop - to jest właściwość która określi jaka jest odległoś od początku. const odlegloscOdPoczatkuSekcji1 = document. querySelector('. sekcja1'). offsetTop

You must sign in to write a comment