有沒有辦法讓列表中的鏈接總是佔用列表項的寬度和高度的100%,而不管屏幕大小如何?如何在列表項目內建立一個鏈接取整個列表項目空間?
.navList {
list-style-type: none;
overflow: hidden;
}
.navListItem {
float: left;
}
.navListLink:link, .navListLink:visited {
color: #000000;
text-decoration: none;
font-size: 100%;
display: block;
padding: 1em;
}
你可以顯示你的HTML。 – WizardCoder