腾讯云
开发者社区
文档
建议反馈
控制台
登录/注册
首页
学习
活动
专区
圈层
工具
MCP广场
文章/答案/技术大牛
搜索
搜索
关闭
发布
文章
问答
(9999+)
视频
沙龙
2
回答
Bootstrap
col
高度
至
父
DIV
高度
html
、
css
、
twitter-bootstrap
、
height
下面是我使用的代码: <
div
class="container-fluid"><
div
class="
col
-md-2 text-center align-self-centermh-100" style="background-color:red;"></
div
> <
div
class=
浏览 51
提问于2020-07-01
得票数 0
回答已采纳
4
回答
引导程序3嵌套的
col
不采用
父
样式
html
、
css
、
twitter-bootstrap
为什么嵌套的
col
不采用
父
div
的样式?下面是一个背景应该是蓝色的示例:<link href="https://maxcdn.bootstrapcdn.com/
bootstrap
/3.3.7/css/
bootstrap
.min.css"rel="stylesheet" /> &l
浏览 5
提问于2017-09-29
得票数 0
回答已采纳
0
回答
当
父
高度
为auto时,
高度
为100%
html
、
css
、
twitter-bootstrap
例如,我有以下html: <link href="css/
bootstrap
.css" rel="stylesheet"> </style> <body> <
浏览 13
提问于2016-07-03
得票数 2
回答已采纳
1
回答
如何在React-
Bootstrap
/MDBReact中使用%设置行/列的
高度
?
reactjs
、
react-bootstrap
、
mdbreact
因此,基本上我在使用React-
Bootstrap
中的%设置行/列
高度
时遇到了一点小问题。我有一个8列(我要在这里添加一些按钮,图标,图像和文本字段),它们都必须是相同的
高度
行。}}> Machine 31</
Col
> <
Col
style={{backgroundColor: "purple"}}> Machine 41</
Col
><
Col
sty
浏览 36
提问于2019-08-22
得票数 2
回答已采纳
1
回答
使用css维护
div
上的纵向高宽比
css
、
dependencies
、
height
、
width
、
aspect-ratio
: 62.5%;}.
col
-7 {width: 87.5%;}我希望每个箱子的
高度
都是宽度的150%。我见过css (例如,列中的子
div
),但我不知道如何引用
父
元素的宽度。根据W3Schools,% css度量单位应该是相对于
父
元素的,但是我想根据
父
元素的宽度来设置子元素的
高度
,这是一个不同的度量。 W3Schools还通过向包含的
浏览 0
提问于2018-08-23
得票数 0
回答已采纳
1
回答
分割
父
div
高度
以用于子
div
css
、
html
、
twitter-bootstrap
、
twitter-bootstrap-3
我有一个带有特定
高度
的
div
。我想要这样:我在这个
div
中放了一些嵌套的
div
's,并告诉他们使用
父
div
高度
的特定百分比。例如:
div
1=10%,
div
2=50% and
div
3=40%。我正在使用
bootstrap
,我可以通过
col
-*控制行的某些部分的位置,但我想要这个作为
父
div
的
高度
。我如何通过
B
浏览 1
提问于2014-12-26
得票数 0
2
回答
当屏幕宽度< 992px时,我的
div
被隐藏
html
、
css
、
responsive-design
、
bootstrap-4
我正在练习
bootstrap
4布局,当屏幕宽度小于992px时,我的棕色分区被黄色分区覆盖,为什么和如何解决这个问题?/4.0.0/css/
bootstrap
.min.css" rel="stylesheet" /> <
div
class="row header "><
div
class="
c
浏览 2
提问于2019-04-20
得票数 0
1
回答
Safari和
bootstrap
4 flexbox错误
html
、
css
、
safari
、
bootstrap-4
、
slick.js
Bootstrap
4- Safari版本10.1.2 display:table;和display:table-cell; vertical-align:center;在100%
高度
的分区上不工作。class="
col
-12
col
-xs-12
col
-sm-12
col
-md-7
col
-lg-7"> <
浏览 3
提问于2017-12-04
得票数 0
2
回答
未能在
父
行引导4和VueJs中获得两行
html
、
css
、
vue.js
、
bootstrap-4
Vue.component('listcontent', {}) template: `<
div
class="container h-100" > <
div
class="row h-100"&
浏览 1
提问于2018-09-05
得票数 1
回答已采纳
1
回答
分别设置两列可滚动和视口剩余长度的
高度
css
、
twitter-bootstrap
、
flexbox
、
bootstrap-4
、
responsive
然而,我让这个例子起作用的唯一方法是用两个导航器的px对
高度
进行硬编码。当然,这在不同的浏览器、设备和分辨率上可能不起作用。唯一能让#内容和#指导方针分开滚动的方法是,如果我给它们一个固定的
高度
,然后回到原点--如何使那些
div
100%的容器
div
。下面是我使用flexbox的失败尝试(在本例中,它的固定
高度
为100 in ): 是否有可能使第一和第二JS Fiddle的工作,而不定义一个固定的
高度
使用px?
浏览 1
提问于2018-12-20
得票数 3
回答已采纳
1
回答
如何在初始加载时将引导组件(容器)扩展到完整的窗口宽度和
高度
,以及使用哪个类?
javascript
、
jquery
、
html
、
css
、
twitter-bootstrap
我想让这个容器的大小精确地调整到打开它的窗口的宽度和
高度
。此外,当调整大小时,它应该沿着窗口调整大小。 相反,目前它看起来是这样的:我知道如何用jQuery做到这一点,这很简单,但是如果我给容器设置一个固定的
高度
,当我把它缩小到一个较小的尺寸时,引导和页面的“响应性我非常确定
bootstrap
有一些内置的功能,并准备使用功能来做这件事,但显然我找不到它。感谢您的帮助!
浏览 1
提问于2015-01-24
得票数 7
回答已采纳
1
回答
使用jQuery计算
Bootstrap
的列
高度
和中心子项
jquery
、
twitter-bootstrap
我正在尝试创建一个简单的jQuery函数,该函数将计算
父
对象的
高度
,并在不使用css的情况下垂直对齐
父
对象内部的子对象。当用户更改浏览器宽度时,图像
高度
将更改(因此列
高度
也会更改)。和我的html: <img src="image-1.jpg" class="img-responsive"> </
div</em
浏览 2
提问于2015-09-28
得票数 0
2
回答
Bootstrap
4- align-items-*类根本不工作
css
、
bootstrap-4
我目前正在建立一个
Bootstrap
4框架的网站。我发现我不能正确地对齐项目。"> One of three columns <
div
class="
col
"> </
div
> <
d
浏览 39
提问于2018-06-04
得票数 2
回答已采纳
2
回答
使
div
100%高
css
我需要使粉红色的
div
100%的浏览器
高度
,height: 100vh不能正常工作,有一个滚动条,所以它是105%.} <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-
bootstrap
/3.3.6/css/
bootstrap
.min.css&qu
浏览 3
提问于2016-06-02
得票数 0
回答已采纳
1
回答
bootstrap
行下的全宽元素
高度
css
、
twitter-bootstrap
、
twitter-bootstrap-3
.container-fluid header "content content content" 但是当我检查header元素时,它的
高度
是0。如何在不对像素值进行硬编码或使用javascript的情况下将其自动设置为.
col
-xs-12内容的
高度
?
浏览 0
提问于2014-10-21
得票数 0
2
回答
Bootstrap
的
Div
高度
问题
css
、
bootstrap-5
我是
Bootstrap
的新手,正在努力弄清楚为什么我的左列
高度
没有显示为
父
div
的完整
高度
。根据我在文档中的理解,你只是添加了h-100作为一个类,让它占据相对于
父
类的100%的
高度
,但我显然没有正确理解它。这可能与它是块元素的事实有关?h-100"> <
div
class="row
col
g-0 d-flex justify-content-center w-75 align-ite
浏览 30
提问于2021-09-10
得票数 1
回答已采纳
1
回答
动态缩放iFrame内容以适应
div
宽度
html
、
css
、
iframe
、
webkit
enter code here<body></
div
></
div
> <
div
id="column3" class="
浏览 0
提问于2017-01-27
得票数 3
3
回答
强制同一行的
bootstrap
列不均匀调整
高度
html
、
css
、
bootstrap-4
如你所见,我希望左列和右列不调整到中间列的
高度
。 /4.4.1/css/
bootstrap
.min.css"> .
col
-lg-8 { line-height: 200px; } Entete
浏览 34
提问于2020-04-09
得票数 0
回答已采纳
2
回答
如何根据元素
父
容器中的可用空间在元素之间分配相同的
高度
?(我需要动态解决方案)
html
、
css
、
twitter-bootstrap
我在
bootstrap
中有这段代码 <
div
class="
col
-12"> <
div
class="
col
-12"></
div
> backgrou
浏览 0
提问于2020-09-12
得票数 0
回答已采纳
1
回答
Boostrap 4:使文本区域与列
高度
匹配
css
、
bootstrap-4
我试图让
bootstrap
列中的一个文本区域用CCS (无JS)填充列的剩余
高度
。 </
div
> 左侧的文本区域应该与右侧的
高度
匹配(填充
父
级的剩余
高度
)。使文本区height: 100%不是一个解决方案,因为它会溢出
父
浏览 12
提问于2020-02-06
得票数 0
回答已采纳
点击加载更多
热门
标签
更多标签
云服务器
ICP备案
对象存储
云点播
实时音视频
活动推荐
运营活动
广告
关闭
领券