gpt4 book ai didi

html - 保持列表按钮对齐

转载 作者:行者123 更新时间:2023-11-28 13:54:58 25 4
gpt4 key购买 nike

我试图让列表按钮保持相同对齐,但我不知道如果文本很长按钮的位置会自动更改该怎么做

 <html>
<head>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="revisit-after" content="1 days">
<!-- Bootstrap CSS -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
<link href="https://cdnjs.cloudflare.com/ajax/libs/mdbootstrap/4.8.10/css/mdb.min.css" rel="stylesheet">
<link rel="stylesheet" href="https://asd.online/css/index.css">
<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet" integrity="sha384-wvfXpqpZZVQGK6TAh5PVlGOfQNHSoD2xbE+QkPxCAFlNEevoEH3Sl0sibVcOQVnN" crossorigin="anonymous">
<title>YeniPDF</title>
</head>
<body>
<div class="container">
<ul class="list-unstyled row" style="text-align:center;">

<li class="list-group-item col-4"><form action="" id="sorgu" method="get"><img alt="EXP" src="a" width="100&quot;" height="120"><div class="hizala"><a href="#">EXAMPLE EXAMPLE EXAMPLE</a></div>
<button type="submit" class="btn btn-success">
<i class="fa fa-arrow-circle-right fa-lg"></i>
</button></form></li>
<li class="list-group-item col-4"><form action="" id="sorgu" method="get"><img alt="EXP" src="

a

" width="100&quot;" height="120"><div class="hizala"><a href="#">EXAMPLE EXAMPLE EXAMPLE EXAMPLE</a></div>
<button type="submit" class="btn btn-success">
<i class="fa fa-arrow-circle-right fa-lg"></i>
</button></form></li>
<li class="list-group-item col-4"><form action="" id="sorgu" method="get"><img alt="EXP" src="a" width="100&quot;" height="120"><div class="hizala"><a href="#">EXAMPLE EXAMPLE EXAMPLE EXAMPLE EXAMPLE</a></div>
<button type="submit" class="btn btn-success">
<i class="fa fa-arrow-circle-right fa-lg"></i>
</button></form></li>
<li class="list-group-item col-4"><form action="" id="sorgu" method="get"><img alt="EXP" src="a" width="100&quot;" height="120"><div class="hizala"><a href="#">EXAMPLE EXAMPLE EXAMPLE</a></div>
<button type="submit" class="btn btn-success">
<i class="fa fa-arrow-circle-right fa-lg"></i>
</button></form></li>
</ul>
</div>
</body>
</html>

我没有使用任何特定的 css 只是 bootstrap 4 这是 js fiddle https://jsfiddle.net/ygoqmb14/2/

最佳答案

尝试为 .hizala 类添加最小高度

.hizala {
min-height: 130px;
}

关于html - 保持列表按钮对齐,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58788135/

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