随笔分类 -  css

css中如何清除浮动: clear:both和BFC
摘要:clear:both 这种方式有两种做法 做法1 <!DOCTYPE html> <html> <head> <title>one</title> <style> .to-float { width: 100px; height: 100px; float: left; /* 不重要的部分 */ b 阅读全文

posted @ 2022-03-30 19:33 GameCat 阅读(67) 评论(0) 推荐(0) 编辑

导航

< 2025年2月 >
26 27 28 29 30 31 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 1
2 3 4 5 6 7 8

统计

点击右上角即可分享
微信分享提示