Anchor tags are duplicating

冷暖自知 提交于 2019-12-13 04:09:12

问题


http://www.pressedweb.com/beta/#portfolio

My anchor tags (highlighted in red dashed border) are being created by their own free will. I have no idea how to get rid of them and have been working at this for hours now.

Any ideas? Is this some freaky cross-browser bug? Or is it just a problem with my markup?

Thanks.


回答1:


I thinkg this fix will work for you:

div .portfolio .works a img {
-moz-box-shadow:1px 2px 3px #222222;
opacity:0.8;
}

div .portfolio .works a {
border:1px solid #FF0000;
display:block;
float:left;
height:220px;
margin:0 10px 10px 0;
padding:4px;
width:280px;
}

Basically what i did was just switched some styling from img to anchor. You can see in this image that it does work ok.



来源:https://stackoverflow.com/questions/3187983/anchor-tags-are-duplicating

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!