這與上述內容大致相同 - 但我確實清理了一下 - 以防萬一您希望它像樣例中那樣。祝你好運!
JSFIDDLE
HTML
<div class="example">
<button>Button</button>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
</div>
CSS
* {
margin: 0;
padding: 0;
}
.example {
position: relative;
background: red;
width: 100%;
}
p, button {
display:inline-block;
}
button {
width:140px;
height: 70px;
vertical-align:top;
margin: 10px 5px;
}
p {
width:200px;
margin: 0 3px;
padding:5px;
}
謝謝!其作品! :) – Bae