摘要:
<!DOCTYPE html><html lang="en"><head> <meta charset="UTF-8"> <title>Title</title> <style> .main { height: 500px; background-color: blue; display: flex 阅读全文
摘要:
<!DOCTYPE html><html lang="en"><head> <meta charset="UTF-8"> <title>Title</title> <style> .main{position:relative;padding:0 210px;} .left{position:abs 阅读全文
摘要:
<!DOCTYPE html><html lang="en"><head> <meta charset="UTF-8"> <title>Title</title> <style> .main{font-size:0;} /* 去掉行内块受换行符的影响*/ .left{display:inline-b 阅读全文
摘要:
<!DOCTYPE html><html lang="en"><head> <meta charset="UTF-8"> <title>Title</title> <style> .left{position:relative;float:left;width:200px;height:500px; 阅读全文
摘要:
<!DOCTYPE html><html lang="en"><head> <meta charset="UTF-8"> <title>Title</title> <style> .left{float: left;width:200px;height:500px;background-color: 阅读全文
摘要:
让元素div消失在视野中1.position:absolute/relative/fixed + 方位 top/bottom/left/right: -9999px2.display:none3.visibility:hidden4.width:0 + overflow:hidden height: 阅读全文
摘要:
【position取值】1.position: fixed 固定定位 - 网页固定不动的模块- 会脱离文档流,不占位- 参照物: 当前的浏览器窗口- 可以设置方位(top/bottom/left/right) 同时top和bottom top起作用 同时left和right left起作用- 不设置 阅读全文