gpt4 book ai didi

html - CSS 链接(基本帮助)

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

我真的很难用 css 为我自鸣得意的网站制作新主页。

我已经设法完成了:

<html style="height:100%">
<body style="height:100%;margin:0;">
<table style="height:100%;width:100%;vertical-align:middle">
<tr>
<td>
<div style="width:100%;text-align:center">
<span style="display:inline-block">WEDDINGS</span><span style="display:inline-block;padding:0 100px">PORTAITS</span><span style="display:inline-block">COMMERCIAL</span>
</div>
</td>
</tr>
</table>
</body>
</html>

我希望能够为每个单词选择添加一个链接。我无法理解它,有人可以帮忙吗?

此外,如果有人熟悉 smugmug,我将代码粘贴到主题 css 框中,更新我的网站时没有任何反应。

谢谢。

最佳答案

如果您要在以下行周围添加一个链接:

<span style="display:inline-block">WEDDINGS</span>

在其前后放置链接标签,链接标签为

<a href="LINK TO WEBSITE OR PAGE HERE"> </a>

所以它看起来像这样:

<a href="http://www.examplewebsite.com"><span style="display:inline-block">WEDDINGS</span></a>

如果点击,标签之间的任何内容都会将它们重定向到页面。

作为旁注,如果您希望在新选项卡中打开链接页面,请使用“target=_blank”,如下所示:

<a href="http://www.examplewebsite.com" target="_blank"> </a>

关于html - CSS 链接(基本帮助),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27974874/

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