比如div宽为100%,p宽为25%,怎样p能在一行里显示?
<!DOCTYPE html>
<br> *{<br> list-style: none;<br> text-decoration: none;<br> margin: 0;<br> padding: 0;<br> }<br> div{<br> width: 100%;<br> background: #008000;<br> }<br> p{<br> width: 25%;<br> border-right: 1px solid #800000;<br> display: inline-block;<br> }<br>

https://zhidao.baidu.com/question/302619356.html
display:flex,用这个,百度直接查这个就行,关于布局的