锚定标记正在重复 [英] Anchor tags are duplicating
本文介绍了锚定标记正在重复的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
http://www.pressedweb.com/beta/#portfolio p>
我的锚标签(以红色虚线框标出)正在自由创建。我不知道如何摆脱他们,并已经工作了几个小时。
任何想法?这是一些奇怪的跨浏览器错误?
感谢。
解决方案
p>我认为这个修正会为你工作:
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;
}
基本上,我做的只是切换一些样式从img到锚。 您可以在此图片中看到它的确能正常工作。
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.
解决方案
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.
这篇关于锚定标记正在重复的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文