3.边框系列.html 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  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: 800px;
  10. height: 800px;
  11. /* 边框
  12. 复合属性
  13. */
  14. /* 边框粗细 */
  15. border-width: 12px;
  16. /* 边框样式
  17. solid 实线
  18. dashed 虚线
  19. dotted 点线
  20. double 双边框
  21. */
  22. /* color 颜色 */
  23. color: #f00;
  24. border-style: double;
  25. /* 边框颜色 */
  26. border-color: red;
  27. /* border:5px solid rgb(255,255,0); */
  28. /* background: url('../1.html/images/1.png') no-repeat; */
  29. /* background-size: cover; */
  30. background: #ff0;
  31. /* 透明 */
  32. background: transparent;
  33. /* opacity: .5; */
  34. /* background-color: rgba(0,0,255,.5); */
  35. /* border-top: 10px solid #00f; */
  36. /*
  37. border-top
  38. border-bottom
  39. border-right
  40. border-left
  41. */
  42. /* 圆角边框 */
  43. border-radius: 20px;
  44. /*
  45. border-bottom-right-radius 右下
  46. border-top-right-radius 右上
  47. border-bottom-left-radius 左下
  48. border-top-left-radius 左上
  49. */
  50. border-bottom-right-radius: 50px;
  51. }
  52. /*
  53. opacity:0~1
  54. 颜色 rgba: a=> alpha 透明度(0-1)
  55. 红 #f00 #ff0000 rgb(255,0,0)
  56. 黄 #ff0 #ffff00 rgb(255,255,0)
  57. 蓝 #00f #0000ff rgb(0,0,255)
  58. 绿 #0f0 #00ff00 rgb(0,255,0)
  59. 黑 #000 #000000 rgb(0,0,0)
  60. 白 #fff #ffffff rgb(255,255,255)
  61. */
  62. input {
  63. /* border: none; */
  64. /*
  65. 轮廓
  66. 所有属性与border相同
  67. outline
  68. */
  69. outline: none;
  70. outline: 1px solid #ff0;
  71. }
  72. </style>
  73. </head>
  74. <body>
  75. <div>12121</div>
  76. <input placeholder="请输入你喜欢的颜色">
  77. </body>
  78. </html>