.mainBox{
width:960px;
background-color:#CFF;
height:300px;
float:left;
}
.leftBox{
width:740px;
background-color:#C9F;
height:300px;
float:left;
}
.rightBox{
width:210px;
background-color:#FCF;
height:300px;
float:right;
}
width:960px;
background-color:#CFF;
height:300px;
float:left;
}
.leftBox{
width:740px;
background-color:#C9F;
height:300px;
float:left;
}
.rightBox{
width:210px;
background-color:#FCF;
height:300px;
float:right;
}
最贊回答 / weibo_執著的弧線_0
因為導航部分之前使用了浮動,后面的元素會受影響.要在寫寫導航之前添加空的div,如:<div class="clear"></div>然后在CSS文件中添加 ? .clear{clear:both;}
2019-03-06
有個小bug 不知道我講的對不對。
在css開頭已經寫了*{
margin:0;
padding:0;
font-size:12px;
}
的情況下在
.list_box_newsContent
{
font-family:Arial, Helvetica, sans-serif;
font-size:14px;
padding:20px;
line-height:25px;
text-indent:2em;
}
調整字體大小是沒有用的,永遠都是12PX, 一定要寫成.list_box_newsContent p 多加一個p才可以調字體大小
在css開頭已經寫了*{
margin:0;
padding:0;
font-size:12px;
}
的情況下在
.list_box_newsContent
{
font-family:Arial, Helvetica, sans-serif;
font-size:14px;
padding:20px;
line-height:25px;
text-indent:2em;
}
調整字體大小是沒有用的,永遠都是12PX, 一定要寫成.list_box_newsContent p 多加一個p才可以調字體大小
2019-03-01
最新回答 / weixin_慕田峪5218236
?我的ul 部分的“首頁”也是在中間顯示的,大家幫我看看是為什么呀?<div class="nav">? ? ? ? ? <div class="nav-left">? ? ? ? ? ? </div><!--nav-left結束-->? ? ? ? ? ? <div class="nav-mid">? ? ? ? ? ? <div class="nav-mid-left">? ? ? ? ? ? ? ? ? ?<ul>...
2019-02-28
loading其實可以在picBox寫個樣式background center center 圖片水平和垂直居中 再把背景顏色設成白色就行了 在外面加div其實沒必要
2019-02-18
em{
width:20px;
text-align:center;
height:16px;
line-height:16px;
font-size:12px;
white-space:nowrap;
background:url( "http://img1.sycdn.imooc.com//53cf0fa20001d3dc00200032.jpg") no-repeat;
background-position:bottom;
color:#333;
float:left;
margin-top:5px;
}
width:20px;
text-align:center;
height:16px;
line-height:16px;
font-size:12px;
white-space:nowrap;
background:url( "http://img1.sycdn.imooc.com//53cf0fa20001d3dc00200032.jpg") no-repeat;
background-position:bottom;
color:#333;
float:left;
margin-top:5px;
}