0
我正在嘗試通過未定義特定高度來擴展div的內容。現在,內容與div一起展開,但顯示不正常,因爲背景圖像顯示出來而不是被div覆蓋。我該如何解決這個問題?找到附加的圖像。 擴展div中的內容時出錯
HTML代碼
<div class='user_container'>
<div class='user_sec_teams col-md-4'>
<div class='inner_sec'>
<ul>
<span class='points'> Title: </span> {$result['title']}</br>
<span class='points'> Description: </span> {$result['description']}</br></br>
<li class='button1' style='color:#A52A2A;'> <a href='' data-toggle='modal' data-target='#{$result['id']}' class='' style=' text-decoration:none; color:#A52A2A;'>Delete Thread</a></li>
<li class='button2' style='color:#DC143C;'><a href='viewcircle.php?id={$result['id']}' style='text-decoration:none; color:#DC143C;'>View Thread</a></li>
</ul>
</div>
</div>
</div>
CSS代碼
.user_container{
width: 100%;
padding-left: 130px;
}
.user_sec_teams{
width: 350px;
height: 0px;
font-family: TimesNewRoman,Times New Roman,Times,Baskerville,Georgia,serif;
font-size: 15px;
padding-left: 10px;
background: #fff;
}
.inner_sec img{
border: 1px solid #ccc;
height: 70px;
width: 70px;
}
.inner_sec img{
vertical-align: middle;
margin:5px;
}
.inner_sec p{
background: #eee;
}
.inner_sec ul li{
list-style: none;
display: inline;
left:0;
position: relative;
padding: 0;
margin: 0;
}
.inner_sec ul{
padding: 0;
margin: 0;
}
.inner_sec button{
color: #fff;
background:deepskyblue;
outline: none;
width: 12%;
height: 3%;
border: 1px solid deepskyblue;
border-radius:27px;
box-shadow: 0px 1px 1px #ccc;
cursor: pointer;
font-weight: bold;
font-family: georgia;
}
.inner_sec button:hover{
box-shadow: 0px 0px 3px 3px #ccc;
}
如果接受,則將其作爲接受的答案。所以,如果有一些人在這裏,這將會有所幫助 – YaswanthJg 2017-09-14 15:09:16