關于logo(前端開發教程)垂直居中的問題
<style?type="text/css">
*?{
????margin:0;
padding:0;
font-size:12px;
color:#333;
font-family:Verdana,?Geneva,?sans-serif,?"宋體";
list-style:none;
}
a?{
text-decoration:none;
}
a:hover?{
text-decoration:underline;
color:#ff0000;
}
p?{
line-height:24px;
}
#wrap?{
width:780px;
margin:0?auto;
padding:0?10px?10px;
border-left:1px?solid?#e7e7e7;
border-right:1px?solid?#e7e7e7;
}
#header?{
width:100%;
overflow:hidden;
}
.logo?{
width:100%;
height:80px;
line-height:80px;
font-size:30px;
font-family:"微軟雅黑";
background:#3399cc;
color:#fff;
text-indent:30px;
}以上是相關代碼 ?請問是哪個地方控制了logo(前端開發教程)這幾個字垂直居中的。
2016-05-16
.logo?{
????height:80px;
????line-height:80px;
}
這兩句
2016-04-28
試試 ?.logo{margin:0 auto;}
2016-04-27
.logo{
?????text-align: center;
}
加入這段帶碼試試
2016-04-27
.logo{
?????text-align: center;
}
加入這段帶碼試試