May 04, 2021 Foundation5
Foundation provides responsive pictures that you can create thumbnails to drink picture bounce windows:
Add the element outside the
<a>
element to treat the picture as an anchor link.
<img>
Add a
.th
<a>
the label to set the picture as a thumbnail.
Moving the mouse over shows a light blue box:
Responsive picture
Pictures in Foundation are responsive by default. We can reset the browser size on the instance page to see how the picture zooms. |
We can
.th
.radius
class to set the fillet thumbnail:
Foundations make it easy to implement picture e-windows.
To create a bounce window, you can
<ul>
the
.clearing-thumbs
class and
data-clearing
element.
Add
<ul>
the .
Note: The picture e-window requires JavaScript. So you need to initialize Foundation JS before you can use it.
可以添加
data-caption
属性到每个图片来设置图片的描述:
Tip: You can add HTML elements to the data-caption property, such as data-caption."""""" |
You can use the
<ul>
class and
.clearing-featured-img
<li>
class when you need to implement only one thumbnail.
.clearing-feature