怎么<p>里面内容不自动换行,已经设置过了max-width属性了
就是照着老师讲的内容敲的
@charset "utf-8";
/* CSS Document */
body{
margin:0;
padding:0;
}
nav{
background:#CCC;
height:50px;
}
#banner{
background:#777;
height:700px;
}
nav ul{
list-style:none;
margin:0;
height:50PX;
}
nav ul li{
display:inline-block;
line-height:50px;
float:right;
margin-right:20px;
}
nav ul li a{
line-height:inherit;
text-decoration:none;
height:inherit;
display:inline-block;
}
nav ul li.logo{
float:left;
}
#banner .inner{
max-width:300px;
text-align:center;
margin:0 auto;
position:relative;
top:150px;
}
#banner .inner h1{
margin:0;
}
button{
border:none;
background:#3F0;
color:#009;
padding:10px;
}
#banner .inner .more{
margin-top:320px;
}
#banner .inner p{
line-height:30px;
}