我正在尝试在右上角显示一个链接,该链接可以打开另一个页面的新选项卡。打开选项卡和页面可以正常工作,但链接仍然停留在左上角。
我已经在Stackoverflow上看到了一些答案,我已经尝试了多个答案,但我似乎无法让它工作。一定是我忽略了一些非常简单的东西...
?
/**CSS (from stackoverflow answer**/
a.right-link {
color: #2da1c1;
font-size: small;
text-decoration: none;
float: right;
}
a.right-link:hover {
color: #f90;
text-decoration: underline;
}
.leden-form {
width: 200px;
clear: both;
}
.leden-form input {
width: 100%;
clear: both;
}
label,
input {
display: block;
}
label {
margin-bottom: 10px;
}
table {
font-family: arial, sans-serif;
border-collapse: collapse;
width: 100%;
}
td,
th {
border: 1px solid #dddddd;
text-align: left;
padding: 8px;
}
tr:nth-child(even) {
background-color: #dddddd;
}
<div>
<a class='right-link' href='postcodes.php' target='blank'>Postcodes toevoegen/verwijderen</a>
</div>
?
我试着去掉'a‘元素,只使用'right- link’类名,我也试着把这个类名放在link的div元素中。
我在这里遗漏了什么?我如何让它工作?
image of link on page
转载请注明出处:http://www.fulida88.com/article/20230526/2186909.html