因此,我在自己的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) 我想使用三元运算符将多个类应用于组件。有一个共享的 ts 主题文件,其中包含常规按钮样式,但我想根据屏幕宽度在此特定组件中以不同方式显示它们的大小,因此也为此添加了本地范围的类。
对此最好的方法是什么?
...尝试过这个,但不起作用:
...使用类名让它工作。