Css DIV浮动和大小调整问题
我有div大小和浮动问题。当我有小文本时,它是可以的: 但看看当我有大文本时会发生什么 HTML:Css DIV浮动和大小调整问题,css,html,sizing,Css,Html,Sizing,我有div大小和浮动问题。当我有小文本时,它是可以的: 但看看当我有大文本时会发生什么 HTML: 请提供帮助。本教程将对您有所帮助: 您必须设置.wrap容器的宽度。请尝试: .news { float:left; padding:5px 5px 2px 5px; margin-bottom:10px } .news .img { float:left; width:75px; margin-right:5px; } .news .wrap .
请提供帮助。本教程将对您有所帮助:
您必须设置.wrap容器的宽度。请尝试:
.news {
float:left;
padding:5px 5px 2px 5px;
margin-bottom:10px
}
.news .img {
float:left;
width:75px;
margin-right:5px;
}
.news .wrap .title { font-size:14px; }
.news .wrap .text { text-align:justify; }
给出正确的宽度包裹div 或
在news div上指定100%的宽度。包装必须是dinamic diwth
.news{
float:left;
padding:5px 5px 2px 5px;
margin-bottom:10px;
}
.news > .img{
float:left;
width:75px;
margin-right:5px;
}
.news > .img > img{
height:75px;
width:75px;
}
.news > .wrap{
float:left;
}
.news > .wrap > .title{
font-size:14px;
}
.news > .wrap > .text{
text-align:justify;
}
.news {
float:left;
padding:5px 5px 2px 5px;
margin-bottom:10px
}
.news .img {
float:left;
width:75px;
margin-right:5px;
}
.news .wrap .title { font-size:14px; }
.news .wrap .text { text-align:justify; }