
HTML+ CSS
学习学习
不难呐
这个作者很懒,什么都没留下…
展开
-
频繁使用的布局方式
圣杯布局<!DOCTYPE html><html lang="en"><head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta http-equiv="X-UA-Compatible" content="ie=edge"> <title&原创 2020-06-08 12:40:54 · 160 阅读 · 0 评论 -
css关于伪类、伪元素实现checkbox,radio默认样式的修改
label{ display: inline-block; width: 14px; height: 14px; border: 1px solid #dcdee2; border-radius: 3px; font-size: 0; overflow: hidden;}label:hover{ border-color: #dc...原创 2019-12-28 19:29:41 · 465 阅读 · 0 评论 -
css实现div居中的方法
1.position 定位 (元素已知宽高).box{ width: 200px; height:200px; background-color: darkgrey; position: relative;}.content{ width: 100px; height: 100px; background-color: plum; position: absolute; t...原创 2020-01-03 15:28:54 · 217 阅读 · 0 评论 -
BFC概解
BFC定义BFC(block formatting contex)块级格式化上下文BFC的布局规则内部的Box会在垂直方向一个接着一个地放置。Box垂直方向上的距离由margin决定。属于同一个BFC的两个相邻的Box的margin会发生重叠。每个盒子的左外边框紧挨着包含块的左边框,即使浮动元素也是如此。 BFC的区域不会与float box重叠。BFC就是页面上的一个隔离的独立容器...原创 2020-04-09 11:16:31 · 114 阅读 · 0 评论