摘要: css+div实现各种常见边框 一、效果图如下 二、实现代码 div { width: 120px; height: 100px; margin: 10px; float: left; text-align: center; line-height: 100px; font-size: 18px; 阅读全文
posted @ 2021-03-10 18:24 BillyYang 阅读(797) 评论(0) 推荐(0) 编辑
摘要: 要求:css + div 实现中括号边框 一、实现方式 .square_brackets { border: none; position: relative; padding: 0; height: 130px; width: 400px; } .square_brackets:before, . 阅读全文
posted @ 2021-03-10 17:43 BillyYang 阅读(921) 评论(0) 推荐(0) 编辑
摘要: div中多行内容垂直居中显示 一、css 样式 .wrap { height: 200px; width: 200px; border: 1px solid #232323; display: flex; justify-content: center; flex-direction: column 阅读全文
posted @ 2021-03-10 17:24 BillyYang 阅读(264) 评论(0) 推荐(0) 编辑