答案 0 :(得分:4)
您可以尝试使用负框展开阴影距离:
.item {
height: 30px;
width: 200px;
border: 1px solid black;
box-shadow: 0 8px 6px -6px black;
}

<div class="item"> </div>
&#13;
或者看一下这些例子:https://paulund.co.uk/learn-css-box-shadow。
答案 1 :(得分:-1)
使用此代码,它可能对您有帮助..
.jumbotron {
height: 30px;
width: 100%;
box-shadow: 0px 5px 15px #2C3E50;
}
&#13;
<div class="container">
<br>
<div class="jumbotron">
<p> asdfgggggggggggggggggggggggggggggggggggggggg</p>
</div>
</div>
&#13;