Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/75.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/selenium/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript 引导将元素一个置于另一个之下_Javascript_Html_Css_Bootstrap 4_Positioning - Fatal编程技术网

Javascript 引导将元素一个置于另一个之下

Javascript 引导将元素一个置于另一个之下,javascript,html,css,bootstrap-4,positioning,Javascript,Html,Css,Bootstrap 4,Positioning,我使用bootstrap将一些卡放置在另一张卡附近,但我不能真正做到这一点,因为它总是将卡放置在另一张卡下面 汽车 ;价格 ;城市 汽车 ;价格 ;城市 问题在于卡的内联样式定义:宽度:20rem。基本上,你给了网格中的卡2/12来使用(col-sm-2),然后给了一个卡的硬定义,宽度为20rem,这迫使下一张卡占用下一行 此外,还需要在col-8声明后指定另一行。这是我的密码: 汽车 ;价格 &#

我使用bootstrap将一些卡放置在另一张卡附近,但我不能真正做到这一点,因为它总是将卡放置在另一张卡下面


汽车

  • ;价格 ;城市

汽车

  • ;价格 ;城市

问题在于卡的内联样式定义:
宽度:20rem
。基本上,你给了网格中的卡2/12来使用(
col-sm-2
),然后给了一个卡的硬定义,宽度为20rem,这迫使下一张卡占用下一行

此外,还需要在
col-8
声明后指定另一行。这是我的密码:


汽车

  • ;价格 ;城市

汽车

  • ;价格 ;城市

问题在于卡的内联样式定义:
宽度:20rem
。基本上,你给了网格中的卡2/12来使用(
col-sm-2
),然后给了一个卡的硬定义,宽度为20rem,这迫使下一张卡占用下一行

此外,还需要在
col-8
声明后指定另一行。这是我的密码:


汽车

  • ;价格 ;城市

汽车

  • ;价格 ;城市

非常感谢您!非常感谢你!