* {
box-sizing: border-box;
}
.publication {
display: flex;
width: 100%;
margin-top: 6%;
}
.bottom1,
.bottom2 {
display: flex;
flex-direction: column;
}
.bottom1 {
width: 70%;
}
.publicationleft {
width: 700px;
height: 130px;
border-radius: 25px;
padding: 15px;
background: #C7D3DF;
color: #fff;
margin-left: 5%;
margin-bottom: 10px;
}
.publicationbottom {
width: 700px;
height: 70px;
border-radius: 25px;
padding: 15px;
background: #769DBD;
color: #fff;
margin-left: 5%;
margin-bottom: 10px;
text-align: center;
color: #fff;
padding-top: 0px;
text-decoration: none;
}
.textpub {
color: #365A6B;
font-size: 14px;
}
.link {
position: relative;
bottom: 0;
}
<div class="bottom1">
<div class="publicationleft">
<div class="textpub">FamoS – Fahrradverkehrsmodelle als Planungsinstrument zur Reorganisation des Straßenraums (2016-2018) Unter besonderer Berücksichtigung des Radverkehrs werden multimo </div>
<div class="link"><a href="https://www.google.com/"><font color="white">Link</font></a></div>
</div>
<div class="publicationleft">
<div class="textpub">FamoS – Fahrradverkehrsmodelle als Planungsinstrument zur Reorganisation des Straßenraums (2016-2018) Unter besonderer Berücksichtigung des Radverkehrs werden multimo </div>
<a href="https://www.google.com/"><font color="white">Link</font></a>
</div>
<div class="publicationleft">
<div class="textpub">FamoS – Fahrradverkehrsmodelle als Planungsinstrument zur Reorganisation des Straßenraums (2016-2018) Unter besonderer Berücksichtigung des Radverkehrs werden multimo.</div>
<a href="https://www.google.com/"><font color="white">Link</font></a>
</div>
<div class="publicationleft">
<div class="textpub">FamoS – Fahrradverkehrsmodelle als Planungsinstrument zur Reorganisation des Straßenraums (2016-2018) Unter besonderer Berücksichtigung des Radverkehrs werden multimo </div>
<a href="https://www.google.com/"><font color="white">Link</font></a>
</div>
</div>
如何锁定一个元素(在这种情况下链接)到左下一个div的 (圆角正方形在这种情况下)?
所以基本上,链接必须被锁定在圆角正方形的左下角。
任何人都知道解决方案吗? 我试过与positsion:相对。没有工作。它一直持续到容器的最底部。
对不起,我不明白你需要什么?请简要说明。 –
所以你有浅蓝色的正方形,其中显示了一些文字和链接。现在链接在文本下方。无论如何,我都希望链接永久留在蓝色方块的机器人中。我不想使用p标签或任何。 – Lego
.link { position:absolute; bottom:0; }和.publicationleft {position:relative;} –