小编AKL*_*012的帖子

为什么我的弹性物品没有包装?

因此,我在自己的flex-item div中添加了3张图片,它们都位于flex-container div内,随着我缩小浏览器窗口,这些图片会缩放,但是它们都保持内联而不是包装成一列,关于如何包装它们的任何想法?它是这样的:

div class="intro">
    <section id="intro-box">
      <h2>In a nutshell</h2>
      <p>Santorini is one of the Cyclades islands in the Aegean Sea belonging to Greece. It boasts masses of breathtaking cliffs rising over 300m from a submerged caldera. One of the of the most sizeable volcanic eruptions in recorded history happened
        in the island about 3,600 years ago – the Minoan eruption, it occurred at the height of the Minoan civilization.</p>
      <p>Santorini is famous for its dramatic views, spectacular sunsets, peculiar …
Run Code Online (Sandbox Code Playgroud)

html css css3 flexbox responsive

5
推荐指数
1
解决办法
637
查看次数

React.js 问题:如何使用三元运算符将多个类应用于组件?

我想使用三元运算符将多个类应用于组件。有一个共享的 ts 主题文件,其中包含常规按钮样式,但我想根据屏幕宽度在此特定组件中以不同方式显示它们的大小,因此也为此添加了本地范围的类。

在此输入图像描述

对此最好的方法是什么?

...尝试过这个,但不起作用:

在此输入图像描述

...使用类名让它工作。

javascript reactjs material-ui

4
推荐指数
1
解决办法
7326
查看次数

标签 统计

css ×1

css3 ×1

flexbox ×1

html ×1

javascript ×1

material-ui ×1

reactjs ×1

responsive ×1