摘要: 字体类 (font) font 设置或检索对象中的文本特性。该属性是复合属性。 font:[ [ <’ font-style ‘> || <’ font-variant ‘> || <’ font-weight ‘> ]? <’ font-size ‘> [ / <’ line-height ‘> 阅读全文
posted @ 2018-08-28 16:45 —只小白 阅读(429) 评论(0) 推荐(0) 编辑
摘要: 字体类 (font) font 设置或检索对象中的文本特性。该属性是复合属性。 font:[ [ <’ font-style ‘> || <’ font-variant ‘> || <’ font-weight ‘> ]? <’ font-size ‘> [ / <’ line-height ‘> 阅读全文
posted @ 2018-08-28 16:44 —只小白 阅读(695) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html><html lang="en"><head> <meta charset="UTF-8"> <title>Title</title> <style> .main { height: 500px; background-color: blue; display: flex 阅读全文
posted @ 2018-08-28 16:41 —只小白 阅读(884) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html><html lang="en"><head> <meta charset="UTF-8"> <title>Title</title> <style> .main{position:relative;padding:0 210px;} .left{position:abs 阅读全文
posted @ 2018-08-28 16:40 —只小白 阅读(203) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html><html lang="en"><head> <meta charset="UTF-8"> <title>Title</title> <style> .main{font-size:0;} /* 去掉行内块受换行符的影响*/ .left{display:inline-b 阅读全文
posted @ 2018-08-28 16:26 —只小白 阅读(728) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html><html lang="en"><head> <meta charset="UTF-8"> <title>Title</title> <style> .left{position:relative;float:left;width:200px;height:500px; 阅读全文
posted @ 2018-08-28 16:24 —只小白 阅读(190) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html><html lang="en"><head> <meta charset="UTF-8"> <title>Title</title> <style> .left{float: left;width:200px;height:500px;background-color: 阅读全文
posted @ 2018-08-28 15:28 —只小白 阅读(386) 评论(0) 推荐(0) 编辑
摘要: 让元素div消失在视野中1.position:absolute/relative/fixed + 方位 top/bottom/left/right: -9999px2.display:none3.visibility:hidden4.width:0 + overflow:hidden height: 阅读全文
posted @ 2018-08-28 15:24 —只小白 阅读(473) 评论(0) 推荐(0) 编辑
摘要: 【position取值】1.position: fixed 固定定位 - 网页固定不动的模块- 会脱离文档流,不占位- 参照物: 当前的浏览器窗口- 可以设置方位(top/bottom/left/right) 同时top和bottom top起作用 同时left和right left起作用- 不设置 阅读全文
posted @ 2018-08-28 13:05 —只小白 阅读(231) 评论(0) 推荐(0) 编辑