Home>IT Tests>Questions>jQuery positioning: innerHeight and innerWidth include respectively the top and bottom padding, and the left and right padding of the considered element, while the outerHeight and outerWidth properties include the top and bottom margin respectively, and the left and right margin of the considered element.
Question from the jQuery test
jQuery positioning: innerHeight and innerWidth include respectively the top and bottom padding, and the left and right padding of the considered element, while the outerHeight and outerWidth properties include the top and bottom margin respectively, and the left and right margin of the considered element.
Archived
Regarding positioning in jQuery, which of these statements are true?
-1
Community Evaluations
Incorrect answer
Anas25/11/2023
En réalité les 3 réponses sont fausses.
1 - innerHeight et innerWidth mesurent la hauteur et la largeur de lâĂ©lĂ©ment, avec les paddings . outerHeight et outerWidth incluent les bordures et, si lâargument true est fourni, elles incluent aussi les marges.
2 - offset est utilisĂ©e pour obtenir les coordonnĂ©es dâun Ă©lĂ©ment par rapport au document entier, ce qui est utile pour comprendre oĂč un Ă©lĂ©ment se trouve dans notre code.
3 - position est utilisĂ©e pour obtenir les coordonnĂ©es dâun Ă©lĂ©ment par rapport Ă son parent positionnĂ© le plus proche, ce qui est souvent utilisĂ© pour le positionnement relatif Ă lâintĂ©rieur dâun autre Ă©lĂ©ment.
Similar QuestionsMore questions about jQuery
1
Which of these different propositions are correct regarding AJAX processing in jQuery?1
We want to develop a jQuery plug-in or simply define our own methods or properties on the object by augmentation. Which of these statements are correct?0
How to bind a click event to a div, p and b elements in jQuery.0
Use categories in event names in jQuery0
What is the `.ready()` method in jQuery?