5.css补充样式.html 992 B

12345678910111213141516171819202122232425262728293031323334353637
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  6. <title>Document</title>
  7. <style>
  8. div {
  9. width: 400px;
  10. height: 400px;
  11. background-color: aqua;
  12. /* border-radius: 50%; */
  13. border-top-right-radius: 20px;
  14. /*
  15. 圆角边框:border-radius
  16. border-radius:50%;圆形
  17. border-top-right-radius 右上角
  18. border-top-left-radius 左上角
  19. border-bottom-left-radius 左下角
  20. border-bottom-right-radius 右下角
  21. */
  22. }
  23. input {
  24. border:1px solid #f00;
  25. /* outline: none; */
  26. /* 轮廓
  27. outline:width style color;
  28. */
  29. outline: 3px solid #0f0;
  30. }
  31. </style>
  32. </head>
  33. <body>
  34. <div></div>
  35. <input type="text">
  36. </body>
  37. </html>