摘要: <!DOCTYPE html><html lang="en"><head> <meta charset="UTF-8"> <title>position_relative</title> <style> .div1{ background-color: #2eb1fc; width:100px; h 阅读全文
posted @ 2020-01-10 20:15 Stary_tx 阅读(164) 评论(0) 推荐(0) 编辑
摘要: 处理多出来的div2--去掉div2父标签的边框 <!DOCTYPE html><html lang="en"><head> <meta charset="UTF-8"> <title>position_absolute</title> <style> .div1{ background-color 阅读全文
posted @ 2020-01-10 20:13 Stary_tx 阅读(187) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html><html lang="en"><head> <meta charset="UTF-8"> <title>position_absolute</title> <style> .div1{ background-color: #2eb1fc; width:100px; h 阅读全文
posted @ 2020-01-10 20:10 Stary_tx 阅读(456) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html><html lang="en"><head> <meta charset="UTF-8"> <title>position_ example</title> <style> .div1{ height:1500px; background-color:green; } 阅读全文
posted @ 2020-01-10 20:09 Stary_tx 阅读(172) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html><html lang="en"><head> <meta charset="UTF-8"> <title>float</title> <style> .outer{ background-color:blue; overflow:hidden; /*不用添加div,添加 阅读全文
posted @ 2020-01-10 20:06 Stary_tx 阅读(208) 评论(0) 推荐(0) 编辑