-2
只有当我从我的图像中删除“绝对位置”时,链接线44才起作用。 我试着用opera,firefox,IE,safary和chrome。链接(<a>)不适用于绝对位置的图像
我试图改变我的链接z-index没有任何结果。直接在此页面上 https://www.mediafire.com/folder/kn6wdothgbsms/html_problem
我也复制/过去,你的代码:
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Document sans nom</title>
<style>
section>img:first-child
{
position:absolute;
left:0px; top:0;
}
section>img:nth-child(2)
{
position:absolute;
right:0px; top:0;
}
article
{
padding:50px;
}
a
{
z-index:10;
}
</style>
</head>
<body>
<section>
<img alt="article_end" src="main_top_left.png"/>
<img alt="article_end" src="main_top_right.png"/>
<article>
<a href="www.google.fr">LINK</a>
</article>
</section>
</body>
</html>
请发表你正在寻找一个有效的问题解决沿代码。用户不应该下载内容才能帮助您解决问题。 –
你究竟想完成什么?另外,'z-index'不适用于没有css定位的元素。 –
绝对定位是布局网页的一种非常糟糕的方法。它非常不灵活,并且有更好更快的响应选项[** LearnLayout.com **](http://learnlayout.com/) –