css - 阴影裁剪,溢出 :visible isn't working

标签 css

我有以下内容:

HTML:

<div class="boxy"><img><p>Paragraph testing.</p></div>

CSS:

.boxy{
    width= 150px;
    background: #E5E5E5;
    filter:alpha(opacity=90);
    opacity:0.9;
    color: #e9e9e9;
    font-family: "Century Gothic", arial, sans-serif;
    border-radius: 8px;
    font-size: 12px;
    font-weight: bold;
    padding: 2px 2px 2px 5px;
    margin:0 auto;
    overflow: visible;
}

我注意到在 jsfiddle 上 div 看起来很长,尽管我已经通过宽度限制了它。我还添加了 Overflow:Visible 但没有用。将不胜感激任何建议。谢谢!

最佳答案

改变:

width= 150px;

为此:

width: 150px;

关于css - 阴影裁剪,溢出 :visible isn't working,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24765513/

相关文章:

php - 将自定义类添加到 wordpress 中的每个小部件,你的方法是什么?

html - CSS Navbar - 在 DIV 中定位 UL

css - 如何以编程方式滚动带有自己滚动条的 div?

html - 如何使用 CSS 根据任意数字倍数选择特定类之后的第 n 个兄弟?

javascript - Xpages:在主题中引用 css 和 js 资源

javascript - 为结账添加一天的开始日 pikaday datepicker

html - 为什么我的列表项显示在其父 <div> 上方?

html - 无法定位我的边界

html - 矩形下的 CSS 三 Angular 形

html - 导航栏的文字颜色没有改变