草庐IT

flexboxes

全部标签

html - IE 11、Flexbox 和绝对定位不起作用

这是Chrome在Windows10中呈现我的HTML的方式:这就是InternetExplorer11在Windows10中呈现我的HTML的方式:请注意,在Chrome中您可以看到所有子菜单链接,但在InternetExplorer11中则看不到。我该怎么做才能让它在InternetExplorer11中运行?这是我的代码:body{font-family:"HelveticaNeue",Helvetica,Arial,sans-serif;min-width:1280px;}a{color:#000;text-decoration:none;}a.active{color:#f0

html - IE 11、Flexbox 和绝对定位不起作用

这是Chrome在Windows10中呈现我的HTML的方式:这就是InternetExplorer11在Windows10中呈现我的HTML的方式:请注意,在Chrome中您可以看到所有子菜单链接,但在InternetExplorer11中则看不到。我该怎么做才能让它在InternetExplorer11中运行?这是我的代码:body{font-family:"HelveticaNeue",Helvetica,Arial,sans-serif;min-width:1280px;}a{color:#000;text-decoration:none;}a.active{color:#f0

html - Flexbox:Div 高度依赖于同级 div

我将两个div包裹在一个包装器中,它们都具有动态高度:#wrapper{display:flex;}dynamiccontent,heightcouldbemoreorlessthan#rightdynamiccontent,heightcouldbemoreorlessthan#left左边的div应该始终是包装高度的主导因素。有没有办法仅通过css来做到这一点?列的宽度是已知的,我使用的是Bootstrap网格布局。我知道通过给#wrapperdivdisplay:flex子div的高度相等。是否有一些属性告诉浏览器#left高度始终是wrapper的高度,无论内容是否多于#rig

html - Flexbox:Div 高度依赖于同级 div

我将两个div包裹在一个包装器中,它们都具有动态高度:#wrapper{display:flex;}dynamiccontent,heightcouldbemoreorlessthan#rightdynamiccontent,heightcouldbemoreorlessthan#left左边的div应该始终是包装高度的主导因素。有没有办法仅通过css来做到这一点?列的宽度是已知的,我使用的是Bootstrap网格布局。我知道通过给#wrapperdivdisplay:flex子div的高度相等。是否有一些属性告诉浏览器#left高度始终是wrapper的高度,无论内容是否多于#rig

html - 内容溢出的 Flexbox 元素仅适用于 Chrome

请看这支笔:https://codepen.io/linck5/pen/gRKJbY?editors=1100body{margin:0;}.container{width:100%;height:100vh;display:flex;flex-direction:column;}.top-bar{background-color:darksalmon;height:50px;}.inner-container{flex:1;background-color:chocolate;width:100%;height:100%;display:flex;flex-direction:col

html - 内容溢出的 Flexbox 元素仅适用于 Chrome

请看这支笔:https://codepen.io/linck5/pen/gRKJbY?editors=1100body{margin:0;}.container{width:100%;height:100vh;display:flex;flex-direction:column;}.top-bar{background-color:darksalmon;height:50px;}.inner-container{flex:1;background-color:chocolate;width:100%;height:100%;display:flex;flex-direction:col

html - Flexbox child ,行和列的混合

我正在使用flexbox将我的4个元素对齐成一行。然后我想将其分解为移动设备:我已经成功地重新排序了这里的元素:.flexcontainer{display:-webkit-flex;display:flex;-webkit-flex-direction:row;flex-direction:row;-webkit-align-items:flex-start;align-items:flex-start;width:90%;margin:0auto;background:red;}.flexcontainer>div{height:100px;width:25%;background

html - Flexbox child ,行和列的混合

我正在使用flexbox将我的4个元素对齐成一行。然后我想将其分解为移动设备:我已经成功地重新排序了这里的元素:.flexcontainer{display:-webkit-flex;display:flex;-webkit-flex-direction:row;flex-direction:row;-webkit-align-items:flex-start;align-items:flex-start;width:90%;margin:0auto;background:red;}.flexcontainer>div{height:100px;width:25%;background

html - 固定宽度的 child 在 flexbox 中缩小

这个问题在这里已经有了答案:Whatarethedifferencesbetweenflex-basisandwidth?(6个答案)关闭5年前。我是第一次使用display:flex。您可以在这里找到代码笔:https://codepen.io/chrispillen/pen/GEYpRg.node:not(.branch){width:auto;height:100px;background:red;margin-bottom:1px;}.node.branch,.node.branch.body{width:auto;overflow:hidden;}.node.branch.l

html - 固定宽度的 child 在 flexbox 中缩小

这个问题在这里已经有了答案:Whatarethedifferencesbetweenflex-basisandwidth?(6个答案)关闭5年前。我是第一次使用display:flex。您可以在这里找到代码笔:https://codepen.io/chrispillen/pen/GEYpRg.node:not(.branch){width:auto;height:100px;background:red;margin-bottom:1px;}.node.branch,.node.branch.body{width:auto;overflow:hidden;}.node.branch.l