gpt4 book ai didi

html - Div 的行为类似于指向 index.html 的链接

转载 作者:行者123 更新时间:2023-11-28 10:48:35 25 4
gpt4 key购买 nike

所以,我要做的是以 60:40 的比例划分页面(宽度为 700 像素)。在 40 我想要一张图片,其余的 60 文本。我已经使用 div 来包装图像和文本。但是,问题是每当我将光标悬停在该 block 上时,它都会充当指向 index.html 的链接。我的意思是我希望在文本上选择文本而不是默认的手形光标。

这是我正在使用的 CSS:

#image {
width: 40%;
text-align: center;
margin-top: 50px;
float: left;
}

#contentwrap {
width: 60%;
float: left;
text-align: justify;
font-size: 18px;
height: 225px;
}

#contentwrap p {font-family: arial, helvetica;}
#contentwrap pre {
margin-top: 45px;
text-align: center;
}

html的结构如下:

<div id = "image"><img src = "asd.jpg"></div>
<div id = "contentwrap"><pre> *text* </pre>
<p> *text*</p> </div>

图片为 175x175 像素

最佳答案

这不应该发生,除非确实有一个链接,或者您在您的 css 中明确设置了 cursor: pointer。尝试设置 cursor: auto !important

关于html - Div 的行为类似于指向 index.html 的链接,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22875265/

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