Нема описа

basic.html 916B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. <!DOCTYPE html> <title>Basic Visual Test</title>
  2. <style>
  3. @import '/reset.css';
  4. html,
  5. body {
  6. height: 1500px;
  7. }
  8. #reference {
  9. position: relative;
  10. top: 150px;
  11. left: 150px;
  12. width: 200px;
  13. height: 200px;
  14. background-color: red;
  15. box-shadow: inset 0 0 0 1px black;
  16. }
  17. #popper {
  18. width: 100px;
  19. height: 100px;
  20. background-color: rebeccapurple;
  21. box-shadow: inset 0 0 0 1px black;
  22. }
  23. </style>
  24. <table>
  25. <tr>
  26. <td>
  27. cell
  28. </td>
  29. <td>
  30. cell
  31. </td>
  32. <td>
  33. <div id="reference">Reference Box</div>
  34. </td>
  35. </tr>
  36. </table>
  37. <div id="popper">Popper Box</div>
  38. <script type="module">
  39. import { createPopper } from '../dist/popper.js';
  40. const reference = document.querySelector('#reference');
  41. const popper = document.querySelector('#popper');
  42. window.instance = createPopper(reference, popper, {
  43. placement: 'right',
  44. });
  45. </script>