文本的颜色已更改,但似乎无法点击。我不确定我在哪里犯了这个错误,我对HTML和CSS还是陌生的
GET
myapi?offset=100
答案 0 :(得分:0)
以下完整的HTML代码供您参考。在SharePoint中,您可以将代码添加到Web部件页面的脚本编辑器Web部件中,以检查其是否有效。
<!DOCTYPE html>
<html>
<head>
<style>
.column {
float: left;
width: 50%;
padding: 10px;
height:800px;
text-align: center;
color: white;
position: relative;
}
.centered {
position:absolute;
top: 430px;
left: 300px;
width: 100%
}
</style>
</head>
<body>
<div class="row">
<div class="column" style="background-color:#aaa;">
<img src="4.jpg" alt="Snow"/>
<div class="centered"><a href="http://www.google.com">Google</a></div>
</div>
</div>
</body>
</html>
如果href链接仍然不可单击,则可以使用IE / chrome F12检查单击链接时是否发生一些错误。
答案 1 :(得分:-2)
您在s
中缺少http
。是https://www.google.com/而不是http://www.google.com/
s
无关紧要,但出于某种原因将https
放在链接中。为我工作。
http
https://jsfiddle.net/fg7tbwzL/3/
https
https://jsfiddle.net/fg7tbwzL/4/(有效)