3_css3基础.html 821 B

1234567891011121314151617181920212223242526272829303132
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8">
  5. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  6. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  7. <title>Document</title>
  8. <style>
  9. #div1{
  10. width: 200px;
  11. height: 200px;
  12. background: pink;
  13. /* 强制不换行 */
  14. white-space: nowrap;
  15. /* 文本溢出 ... */
  16. overflow: hidden;
  17. text-overflow: ellipsis;
  18. /* 水平 垂直 阴影的距离 颜色 */
  19. text-shadow: 5px 5px 5px red;
  20. border-radius: 10px;
  21. box-shadow: 2px 10px 30px rgb(0, 0, 0,0.5);
  22. }
  23. </style>
  24. </head>
  25. <body>
  26. <div id="div1">
  27. 哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈
  28. </div>
  29. </body>
  30. </html>