随笔分类 -  前端 / CSS

摘要:1.父容器设置为flex布局,并允许折行 .flex-outer { display: flex; flex-wrap: wrap; } 2.通过修改子容器百分比实现 是n列就把百分比变为100/n(%) 阅读全文
posted @ 2022-09-19 15:37 lwx_R 阅读(186) 评论(0) 推荐(0) 编辑
摘要:1.使用flex布局 <style> #back{ border: red solid 1px; width: 800px; height: 500px; display: flex; align-items: center; } #left{ border: blue 1px solid; wid 阅读全文
posted @ 2022-09-19 12:24 lwx_R 阅读(493) 评论(0) 推荐(0) 编辑
摘要:https://www.cnblogs.com/hellocd/p/10443237.html 阅读全文
posted @ 2022-09-19 12:14 lwx_R 阅读(10) 评论(0) 推荐(0) 编辑
摘要:1.在父元素使用 display: flex; justify-content: center; align-items: center 其中justify-content是左右居中,align-items是上下居中 阅读全文
posted @ 2022-09-19 12:04 lwx_R 阅读(32) 评论(0) 推荐(0) 编辑
摘要:1.在子元素使用display:inline-block 注意子元素宽度加上边距不能超过父元素宽度,否则就在下一行展示 <style> #back{ border: red solid 1px; width: 800px; height: 500px; } #back div{ border: bl 阅读全文
posted @ 2022-09-19 11:52 lwx_R 阅读(225) 评论(0) 推荐(0) 编辑
摘要:<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title></title> <link rel="stylesheet" type="text/css" href="css_form_tables.css"/> </head> <body 阅读全文
posted @ 2022-03-03 21:23 lwx_R 阅读(25) 评论(0) 推荐(0) 编辑
摘要:<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title></title> <link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Ic 阅读全文
posted @ 2022-03-03 21:07 lwx_R 阅读(72) 评论(0) 推荐(0) 编辑
摘要:<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title></title> <link rel="stylesheet" type="text/css" href="css_font.css"/> </head> <body> <div 阅读全文
posted @ 2022-03-03 20:51 lwx_R 阅读(27) 评论(0) 推荐(0) 编辑
摘要:<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title></title> <link rel="stylesheet" type="text/css" href="css_font.css"/> </head> <body> <h1>这 阅读全文
posted @ 2022-03-02 22:02 lwx_R 阅读(29) 评论(0) 推荐(0) 编辑
摘要:<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title></title> <link rel="stylesheet" type="text/css" href="css_outline.css"/> </head> <body> <! 阅读全文
posted @ 2022-03-02 21:17 lwx_R 阅读(21) 评论(0) 推荐(0) 编辑
摘要:<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title></title> <link rel="stylesheet" type="text/css" href="css_margin.css"/> </head> <body> <p 阅读全文
posted @ 2022-03-02 21:10 lwx_R 阅读(45) 评论(0) 推荐(0) 编辑
摘要:<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title></title> <link rel="stylesheet" type="text/css" href="css_border.css"/> </head> <body> <di 阅读全文
posted @ 2022-03-02 20:54 lwx_R 阅读(28) 评论(0) 推荐(0) 编辑
摘要:<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title></title> <link rel="stylesheet" type="text/css" href="css_back.css"/> </head> <body> <div 阅读全文
posted @ 2022-02-28 21:06 lwx_R 阅读(12) 评论(0) 推荐(0) 编辑
摘要:<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title></title> <!-- 外部css --> <!-- rel 规定当前文档与被链接文档之间的关系 stylesheet 文档的外部样式表。 type 属性 规定被链接文档的 M 阅读全文
posted @ 2022-02-28 21:05 lwx_R 阅读(18) 评论(0) 推荐(0) 编辑

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