蓝图 CSS 框类帮助
今晚我开始使用 Blueprint CSS,一切进展顺利。直到我开始使用 .box 类,并为其添加阴影。我最终创建了自己的类来应用阴影,但现在我的列数似乎已关闭。我只能使用 23 列,而不是正常的 24 列。如果我使用 24 列,则会出现溢出并出现滚动条。
我创建自己的类的原因是因为如果我将阴影应用到 .box 类,我会遇到溢出问题。我做了一些研究,发现我需要为盒子类创建一个子 div。如果我去掉了阴影,效果就很好。
CSS 和 HTML 都位于此处: http://pastie.org/1608550
我可以按原样继续前进,但我担心这会在以后引起问题。
I started playing with Blueprint CSS tonight and things are going pretty well. Up until I started to use the .box class, and adding a dropshadow to it. I ended up creating my own class to apply the shadows, but now my column count seems to be off. Instead of the normal 24 columns, I can only use 23. If i use 24 columns, the overflow turns on and I get scroll bars.
The reason I made my own class was because if i applied the shadows to the .box class, I would run into the overflow issue. I did some research and found that I needed to create a child div for the box class. If i removed my shadows, things worked great.
Both the CSS and the HTML are located here: http://pastie.org/1608550
I can move forward as is, but I'm concerned this will cause issues down the road.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我能够通过完全删除 .box div 来解决我的问题。我用功能结果更新了馅饼。
I was able to fix my problem by removing the .box div completely. I updated the pastie with the functional results.