gpt4 book ai didi

css - 如何让 Bootstrap 第一列第二行内容与第二列底线对齐?

转载 作者:太空宇宙 更新时间:2023-11-04 09:10:42 25 4
gpt4 key购买 nike

这是我想要的:

+-row3----------++-row9----------+    
| | | |
| | |
| | |Image
+----------------+ |
+-row3----------+ |
| | |
| Need content | |
| bottom align | |
| here | |
| | | |
+----------------+ +----------------+
-----------------------------------------------

我的 HTML 如下:

<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet"/>
<div class="row">
<div class="col-md-12">
<div class="col-md-3">
<div class="row">
bootstrap table css - html table
bootstrap table css - html table
</div>
<div class="row">
bootstrap table ----- Need this table to show at bottom align with same div as shown on beside column.
</div>
</div>
<div class="col-md-9">
The image is shown here - vertically large height than the first column.

</div>
</div>

根据草图,需要内容对齐底部。尝试过 - vertical-align:bottom 但它没有对齐。

最佳答案

如果有帮助,试试这个。展开片段以全屏显示。您可以通过将 height 属性设置为 div class="col-md-9" 来实现图像的高度。

<html>

<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
<script src="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js"></script>
</head>

<body>

<div class="row">
<div class="col-md-12">
<div class="col-md-3" style="">

<div class="row">
<div class="col-md-12" style="background-color: blue;">

bootstrap table css - html table
</div>
</div>
<div class="row">
<div class="col-md-12" style="background-color: red;">

bootstrap table css - html table
</div>
</div>
</div>
<div class="col-md-9" style="background-color: green; height:40px;">
Image shown here - vertically large height then first column.

</div>
</div>
</body>

</html>

关于css - 如何让 Bootstrap 第一列第二行内容与第二列底线对齐?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42133004/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com