+ 2

I can’t able to find answer. Somebody help me please???

<div style=“width:200px”></doc> <script> $(function (){ $(“div”).css(“padding”,”5px”); alert($(“div”).innerWidth()); }); </script>

14th Oct 2018, 4:50 AM
Vaishali Singh
Vaishali Singh - avatar
4 Respostas
+ 1
Not sure what answer you were expecting, but this returns 344 (portrait) and 656 (landscape) for me in the Code Playground. https://code.sololearn.com/WE6jxrBnYeFS/?ref=app
15th Oct 2018, 7:43 PM
Janning⭐
Janning⭐ - avatar
+ 3
okkk thank you so much
15th Oct 2018, 11:01 PM
Vaishali Singh
Vaishali Singh - avatar
+ 2
sorry that was </div>
14th Oct 2018, 3:09 PM
Vaishali Singh
Vaishali Singh - avatar
0
what is </doc> ?
14th Oct 2018, 9:23 AM
Janning⭐
Janning⭐ - avatar