将左浮动视频放在段落底部
Put left-floating video at bottom of paragraph
如果我将带 float:right 的
试试这个代码
.container{
}
p.p1{ text-align:left; }
.grid{ display: inline-grid; grid-template-columns: auto auto; }
.grid div{ max-width:50%;}
<div class="container">
<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 </p>
<div class="grid">
<div>
<p>
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>
<div>
<video src="http://movietrailers.apple.com/movies/universal/jurassic-world-fallen-kingdom/jurassic-world-fallen-kingdom-trailer-1_h1080p.mov" width="300" controls></video>
</div>
</div>
</div>
如果我将带 float:right 的
试试这个代码
.container{
}
p.p1{ text-align:left; }
.grid{ display: inline-grid; grid-template-columns: auto auto; }
.grid div{ max-width:50%;}
<div class="container">
<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 </p>
<div class="grid">
<div>
<p>
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>
<div>
<video src="http://movietrailers.apple.com/movies/universal/jurassic-world-fallen-kingdom/jurassic-world-fallen-kingdom-trailer-1_h1080p.mov" width="300" controls></video>
</div>
</div>
</div>