gpt4 book ai didi

html - 链接到完整的 div - html 和 css

转载 作者:太空宇宙 更新时间:2023-11-04 00:33:37 25 4
gpt4 key购买 nike

一些文字

.sliderPart {   
width: 25%;
height: 100%;
}

.sliderPart a {
display:block;
position:relative;
text-decoration:none;
height: 100%;
font: 1.3em Arial, Sans-serif;
}

如何让我的链接在所有 div 区域都可点击?

最佳答案

最简单的方法是完全删除 div:

<a href="#computers" class="sliderPart">
<strong>Some text</strong>
</a>

a.sliderPart {
...
}

关于html - 链接到完整的 div - html 和 css,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1516552/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com