modelmapper中是否有一种方法可以在转换器内部调用 .box>img {
position: absolute;
width:100%;
height:100%;
}
.box {
position: relative;
overflow: hidden;
}
.inner-box {
border: 1px solid red;
background-color: rgba(0, 80, 0, 0.8);
padding: 20px;
position: relative;
}
,如下所示:
<a href="#a">Anchor 1</a> <a href="#b">Anchor 2</a> <a href="#c">Anchor 3</a>
<div class="box">
<img src="https://via.placeholder.com/1500x500" />
<div class="inner-box">
<a name="a">Anchor 1</a>
</div>
</div>
<div class="box">
<img src="https://via.placeholder.com/1500x500" />
<div class="inner-box">
<a name="b">Anchor 2</a>
</div>
</div>
<div class="box">
<img src="https://via.placeholder.com/1500x500" />
<div class="inner-box">
<a name="c">Anchor 3</a>
</div>
</div>
当前它给错误映射功能未定义。我想念什么吗?