这与上面的大致相同-但我确实对其进行了一些清理-以防万一您希望它像示例中那样样式。祝你好运!
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;
}