gpt4 book ai didi

css - 我可以使用 Bootstrap 制作楼梯布局吗?

转载 作者:太空宇宙 更新时间:2023-11-04 07:49:20 24 4
gpt4 key购买 nike

我想使用 Bootstrap 制作一个类似楼梯的布局:

stair-like layout

为了构建它,我使用了下面的代码

<div class="col-md-6 pull-left col-sm-12">...(img)...</div>
<div class="col-md-6 col-sm-12">....aaaaa.....</div>

我知道这行不通,但我可以做些什么来使用 Bootstrap 进行这种布局?

最佳答案

你是说这样?

img {
float: left;
}
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
</head>
<body>
<p>
<img src="https://camo.mybb.com/e01de90be6012adc1b1701dba899491a9348ae79/687474703a2f2f7777772e6a71756572797363726970742e6e65742f696d616765732f53696d706c6573742d526573706f6e736976652d6a51756572792d496d6167652d4c69676874626f782d506c7567696e2d73696d706c652d6c69676874626f782e6a7067">
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent fringilla vehicula arcu, vitae eleifend purus dictum sit amet. Etiam sollicitudin quis nunc id tempor. Aenean nunc mauris, varius ut turpis tempus, pretium egestas diam. In nunc quam, laoreet ut ex in, egestas finibus enim. Pellentesque accumsan vehicula semper. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Pellentesque dolor tortor, fermentum et sollicitudin in, pharetra eget odio. Aenean eget erat ante. Proin libero erat, tincidunt non posuere non, facilisis non enim. Praesent a dignissim ex. Phasellus viverra nec velit at tincidunt. Pellentesque lorem lectus, molestie vitae turpis a, dignissim aliquam dolor. Suspendisse consectetur, sapien non feugiat semper, ipsum lacus consectetur ligula, id laoreet ligula velit a lorem. Maecenas ac ante urna. Phasellus vitae mi nec tortor luctus viverra sed sit amet arcu.Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent fringilla vehicula arcu, vitae eleifend purus dictum sit amet. Etiam sollicitudin quis nunc id tempor. Aenean nunc mauris, varius ut turpis tempus, pretium egestas diam. In nunc quam, laoreet ut ex in, egestas finibus enim. Pellentesque accumsan vehicula semper. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Pellentesque dolor tortor, fermentum et sollicitudin in, pharetra eget odio. Aenean eget erat ante. Proin libero erat, tincidunt non posuere non, facilisis non enim. Praesent a dignissim ex. Phasellus viverra nec velit at tincidunt. Pellentesque lorem lectus, molestie vitae turpis a, dignissim aliquam dolor. Suspendisse consectetur, sapien non feugiat semper, ipsum lacus consectetur ligula, id laoreet ligula velit a lorem. MadfsgsdgsdfgsdfgsdgsdfgPellentesque dolor tortor, fermentum et sollicitudin in, pharetra eget odio. Aenean eget erat ante. Proin libero erat, tincidunt non posuere non, facilisis non enim. Praesent a dignissim ex. Phasellus viverra nec velit at tincidunt. Pellentesque lorem lectus, molestie vitae turpis a, dignissim aliquam dolor. Suspendisse consectetur, sapien non feugiat semper, ipsum lacus consectetur ligula, id laoreet ligula velit a lorem. Madfsgsdgsdfgsdfgsdgsdfg
</p>
</body>
</html>

关于css - 我可以使用 Bootstrap 制作楼梯布局吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47901251/

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