如何让哈巴狗 MIXIN“显示弹性”?

问题描述

Sry 英语不好,但是 我无法内联显示我的对象 我只想做到:"1st product" "2nd product" "3rd product" 但我的 css 只是忽略它,并喜欢:

                                       "1st product"
                                       "2nd product"
                                       "3rd product"

请帮忙:(

这是哈巴狗代码

mixin category(data)
  .product-card
    a(href="/category/" + data.id)= data.name
    br
    img.cat-img(src= data.imageUrl)

和CSS

.product-card {
  display: flex;
  flex-direction: row; 
  align-items: center;
  padding: 1rem;
  margin: 1rem auto;
  font-family: "Roboto";
  Box-shadow: 6px 6px 20px 0 rgba(0,0.1);
  border-radius: 8px;
  background: white;
}

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)