无法在html div元素周围获得边框 [英] Can't get a border around a html div element
本文介绍了无法在html div元素周围获得边框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我不知道为什么我不能在我的div周围得到一个边框。我的jsfiddle是:
I can't figure out why I can't get a border around my div here. My jsfiddle is:
我必须从盯着我的电脑屏幕看起来很疯狂,但如果你看看 verticalmembersmenu
在CSS中,我不能为我的生活找出为什么我不能得到边界周围的div。
I must just be crazy from staring at my computer screen but if you look at the class verticalmembersmenu
in the CSS, I can't for the life of me figure out why I can't get the border around the div.
推荐答案
您在CSS中使用HTML样式注释,似乎打破了渲染,请查看 http://jsfiddle.net/4HnKs/3/
You are using HTML style comments in your CSS, that seems to be breaking the rendering, take a look at http://jsfiddle.net/4HnKs/3/
一些资讯评论: http://www.w3.org/TR/CSS2/syndata.html#comments
这篇关于无法在html div元素周围获得边框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文