摘要: 既可以解决高度塌陷问题 也可以 外边距重叠问题 .clearfix::after, .clearfix::before{ content: ""; display: table; clear: both; } <!DOCTYPE html> <html lang="en"> <head> <meta 阅读全文
posted @ 2020-09-13 20:00 13522679763-任国强 阅读(103) 评论(0) 推荐(0)
摘要: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Document</title> <style> .box1{ width: 400px; height: 200px; background-color: # 阅读全文
posted @ 2020-09-13 11:04 13522679763-任国强 阅读(147) 评论(0) 推荐(0)
摘要: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Document</title> <style> .box1{ width: 200px; height: 200px; background-color: # 阅读全文
posted @ 2020-09-13 10:34 13522679763-任国强 阅读(126) 评论(0) 推荐(0)