嘿,这可能是另一个新错误 - 但我似乎无法弄清楚为什么我的链接都变得有趣了。以下是现在正在发生的事情的实例: http://www.marasites.com/?name=iSell&page=BingeLayout
这些代码在我的导航部分:
#Amazon solution:
@images = get_files('1')
@images.each do |image|
image = "https://s3.amazonaws.com/uipstudy/#{image}"
@image_array << image
end
查看HTML位也可能很有用:
nav {
width: 12%;
height: 93%;
position: fixed;
left: 7%;
bottom: 0;
font-family: 'Just Another Hand', cursive;
}
nav a {
width: 10%;
margin: 2px;
padding: 2px;
background-color: #6b6b6b;
color: #f4f4f4;
font-size: 18px;
display: block;
text-decoration: none;
font-family: 'Just Another Hand', cursive;
position: fixed;
left: 8%;
}
nav a:hover {
background-color: #f4f4f4;
color: #6b6b6b;;
}
nav h1{
width: 10%;
margin-top: 40px;
padding: 2px;
background-color: #6b6b6b;
color: #f4f4f4;
font-size: 23px;
display: block;
text-decoration: none;
font-family: 'Just Another Hand', cursive;
position: fixed;
left: 8%;
}
nav h2 {
width: 90%;
margin: 2px;
padding: 2px;
color: #6b6b6b;;
font-size: 23px;
display: block;
text-decoration: none;
font-family: 'Just Another Hand', cursive;
position: fixed;
left: 8%;
}
所以可能有很多错误,我没有接受,任何反馈都很有用,但是我怎样才能将我的链接全部显示在H1以下,以便他们应该这样做?并继续使用应用于它们的h2标签?谢谢^
答案 0 :(得分:2)
删除position: fixed;
从:
nav a{}
nav h1 {}
将解决问题