up
This commit is contained in:
parent
4272b7bb13
commit
508969c13f
168 changed files with 340 additions and 10 deletions
16
2-ui/1-document/09-size-and-scroll/cssWidthScroll.view/index.html
Executable file
16
2-ui/1-document/09-size-and-scroll/cssWidthScroll.view/index.html
Executable file
|
@ -0,0 +1,16 @@
|
|||
<!DOCTYPE HTML>
|
||||
<html>
|
||||
<body>
|
||||
<div id="elem" style="overflow-y:scroll;width:300px;height:200px;border:1px solid black">
|
||||
text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text
|
||||
text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text
|
||||
text text text text text text text text text text text text text text text text text text text text text text text text text text
|
||||
</div>
|
||||
|
||||
The element has <code>style="width:300px"</code>
|
||||
<br>
|
||||
|
||||
<button onclick="alert( getComputedStyle(elem).width )">alert( getComputedStyle(elem).width )</button>
|
||||
|
||||
</body>
|
||||
</html>
|
Loading…
Add table
Add a link
Reference in a new issue