如何使div在移动人像中看起来与在移动风景中一样

时间:2019-05-11 15:35:03

标签: html css wordpress

在移动景观中,我有两个div并排漂浮,但是当我将其转为纵向时,它会恢复为彼此重叠的一个div。页面:https://adsler.co.uk/browse-adsler/

我如何也将它们并排放置在移动人像中?

 .awpcp-listings {
 display: flex;
 flex-wrap: wrap;
 }

 .awpcp-listing-excerpt 
 {
 min-width: 20%;
 margin-right: 15px;
 box-shadow: 0 8px 16px #888888 !important;
 border-style: solid;
 color: grey;
 border-radius: 4px;
 margin-bottom: 10px;
 flex-grow: 2;
 }

 .awpcp-listing-excerpt-inner {
 min-width: 140px;
 min-height: 200px;
 }
.awpcp-listing-excerpt-content {
display: none;
}

 .awpcp-listing-title {
 font-size: 10px;
 padding: 5px;
 text-align: left;
 background-color: yellow;
 }
.awpcp-listing-excerpt-extra {
margin-left: 20px;
}

使用@media screen and

尝试了上述所有div
@media screen and (orientation: portrait) {.awpcp-listing- 
 excerpt-extra {
 margin-left: 20px;
 }} 

什么都没有。

我的html:

<div class="awpcp-listing-excerpt $awpcpdisplayaditems 
$isfeaturedclass" data-breakpoints-class-prefix="awpcp- 
listing-excerpt" data-breakpoints='{"tiny": [0,328], "small": 
[328,600], "medium": [600,999999]}'>
<div class="awpcp-listing-excerpt-thumbnail">
$awpcp_image_name_srccode
</div>
<div class="awpcp-listing-excerpt-inner" style="w">
<h4 class="awpcp-listing-title">$title_link</h4>
<div class="awpcp-listing-excerpt- 
content">$excerpt</div>
</div>
<div class="awpcp-listing-excerpt-extra">
$awpcpadpostdate
$awpcp_city_display
$awpcp_state_display
$awpcp_display_adviews
$awpcp_display_price
$awpcpextrafields
</div>

0 个答案:

没有答案