急!求教,子div不继承父div的高度,设置为100%也不行!
css吧
全部回复
仅看楼主
level 3
优秀骚年 楼主




2012年11月10日



14




分类:
准虚构一厢情愿而已





今日听君歌一曲,使我不得开心颜




准备将自己的生活添油加醋,放到博客上来,分类为“小生活偏要添油加醋 准虚构一厢情愿而已”。我是一个很会添油加醋的人,同学都说我笔下添油加醋的生活有股红烧牛肉味。
你知道我是一个与党中央号召的以“八荣八耻”为代表的先进思想保持高度一致的人,对于课间跑这种可以加强我等社会主义接班人身体素质的活动,我是坚决支持的。






CSS
.thepost {clear: both;}.theentry{float: left;background: #EEE;width: 95%;margin-bottom: 40px;}.boximg { width: 0px; height: 100%;}.box {width: 220px;height: 100%;background: #E4E5E6;float: left;margin:0 20px 0 0;vertical-align: center;}.more-link {color: #000;position:relative;width: 40px;height: 100%;padding:0;float: left;text-align: center;line-height: 220px;background: #E4E5E6; -webkit-transition: background-color 0.5s linear, color 0.5s linear, width 0.5s linear; -moz-transition: background-color 0.5s linear, color 0.5s linear, width 0.5s linear; -o-transition: background-color 0.5s linear, color 0.5s linear, width 0.5s linear; transition: background-color 0.5s linear, color 0.5s linear, width 0.5s linear;}.more-link:hover{width: 50px;padding:0;color:
#FFF;background-color: #
FE4365;} .comments-link {width: 120px;height: 120px;margin: auto;border-radius: 120px;background: #FE4365;position: relative;}.comments-link a{font-size: 40px;color: #FFF;text-align: center;}.entrytime{color: #FFF;margin-top: 0;width: 220px;height: 30px;text-align: center;background: #FE4365;padding: 20px 0 0 0;}.thecategory {color: #FFF;margin-bottom: 0;width: 220px;height: 30px;text-align: center;background: #FE4365;padding: 20px 0 0 0;}.thecategory a {color:
#FFF;}.entry-meta a {color: #
777;}.comments-link a:hover{color:#FFF}.entry-meta a:hover {color: #FE4365;}.commentnumber{text-align: center;padding-top: 42px;}
2013年06月12日 00点06分 1
level 3
优秀骚年 楼主
2013年06月12日 00点06分 2
level 2
html,body{
height:100%;
}
/*
html和body的高度设置一下
*/
2013年06月12日 03点06分 4
level 1
高度不能继承吧
2018年02月07日 02点02分 5
level 1
看的头疼能不能好好换个行
2018年02月14日 09点02分 6
1