flex: 1 是 CSS 中用于弹性布局(Flexbox)的一个简写属性,用于在容器内分配多余空间或者收缩元素以适应容器大小。它综合了 flex-grow、flex-shrink 和 flex-basis 三个属性的值。
当使用 flex: 1 时,你实际上是在设置:
flex-grow: 1:元素会尝试占据多余的空间。
flex-shrink: 1:元素在必要时会缩小。
flex-basis: 0%:元素的默认大小是 0,这意味着它会完全依赖 flex-grow 来分配空间。
json { version: {{VUE_APP_BUILD_VERSION}} } 安装hexo-readmore插件后,发现主页的sidebar样式错乱 通过查看html 发现 原本和文章同级的#sidebar 变成了子集查看Maupassant的base.pug看到代码
Welcome to Hexo! This is your very first post. Check documentation for more info. If you get any problems when using Hexo, you can find the answer in troubleshooting or you can ask me on GitHub.