如何在图像底部显示文字(另一个div元素)?
<style type="text/css">
.right{
float: left;
width: 60%;
padding-left: 5px;
}
.left{
float: left;
width: 40%;
max-width: 303px;
}
</style>
<div class="left">
<img src="http://i.imgur.com/xCbC4o8.png"/>
</div>
<div class="right">
et’s start with a bit of background. How did you get into angel investing? I was one of the early folks at eBay and by 1999 it was completely overrun by consultants from McKinsey, Bain and BCG. It went from being a cool fun startup to an MBA factory. Angel investing was an outlet for me to hang out with people I liked– startup founders doing crazy stuff! Where did you get the mone et’s start with a bit of background. How did you get into angel investing? I was one of the early folks at eBay and by 1999 it was completely overrun by consultants from McKinsey, Bain and BCG. It went from being a cool fun startup to an MBA factory. Angel investing was an outlet for me to hang out with people I liked– startup founders det’s start with a bit of background. How did you get into angel investing? I was one of the early folks at eBay and by 1999 it was completely overrun by consultants from McKinsey, Bain and BCG. It went from being a cool fun startup to an MBA factory. Angel investing was an outlet for me to hang out with people I liked– startup founders doing crazy stuff! Where did you get the moneoing crazy stuff! Where did you get the mone
et’s start with a bit of background. How did you get into angel investing? I was one of the early folks at eBay and by 1999 it was completely overrun by consultants from McKinsey, Bain and BCG. It went from being a cool fun startup to an MBA factory. Angel investing was an outlet for me to hang out with people I liked– startup founders doing crazy stuff! Where did you get the mone
</div>
https://jsfiddle.net/u50z4zta/
当我测试我的代码时,它显示如下。文字未显示在图像底部[见红色方块]
http://i.imgur.com/YYVMRH3.jpg
我想在图像底部显示文字。 [见红场]
http://i.imgur.com/jJ9eQ5g.jpg
我该怎么做?
答案 0 :(得分:0)
你看起来像这样吗LiveFiddle
.post{
margin:25px 25px;
}
img {
float: right;
}
&#13;
<div class="post">
<img src="http://i.imgur.com/xCbC4o8.png" />
<div class="right">
et’s start with a bit of background. How did you get into angel investing? I was one of the early folks at eBay and by 1999 it was completely overrun by consultants from McKinsey, Bain and BCG. It went from being a cool fun startup to an MBA factory.
Angel investing was an outlet for me to hang out with people I liked– startup founders doing crazy stuff! Where did you get the mone et’s start with a bit of background. How did you get into angel investing? I was one of the early folks at eBay and
by 1999 it was completely overrun by consultants from McKinsey, Bain and BCG. It went from being a cool fun startup to an MBA factory. Angel investing was an outlet for me to hang out with people I liked– startup founders det’s start with a bit of
background. How did you get into angel investing? I was one of the early folks at eBay and by 1999 it was completely overrun by consultants from McKinsey, Bain and BCG. It went from being a cool fun startup to an MBA factory. Angel investing was an
outlet for me to hang out with people I liked– startup founders doing crazy stuff! Where did you get the moneoing crazy stuff! Where did you get the mone et’s start with a bit of background. How did you get into angel investing? I was one of the early
folks at eBay and by 1999 it was completely overrun by consultants from McKinsey, Bain and BCG. It went from being a cool fun startup to an MBA factory. Angel investing was an outlet for me to hang out with people I liked– startup founders doing crazy
folks at eBay and by 1999 it was completely overrun by consultants from McKinsey, Bain and BCG. It went from being a cool fun startup to an MBA factory. Angel investing was an outlet for me to hang out with people I liked– startup founders doing crazy
folks at eBay and by 1999 it was completely overrun by consultants from McKinsey, Bain and BCG. It went from being a cool fun startup to an MBA factory. Angel investing was an outlet for me to hang out with people I liked– startup founders doing crazy
folks at eBay and by 1999 it was completely overrun by consultants from McKinsey, Bain and BCG. It went from being a cool fun startup to an MBA factory. Angel investing was an outlet for me to hang out with people I liked– startup founders doing crazy
folks at eBay and by 1999 it was completely overrun by consultants from McKinsey, Bain and BCG. It went from being a cool fun startup to an MBA factory. Angel investing was an outlet for me to hang out with people I liked– startup founders doing crazy
folks at eBay and by 1999 it was completely overrun by consultants from McKinsey, Bain and BCG. It went from being a cool fun startup to an MBA factory. Angel investing was an outlet for me to hang out with people I liked– startup founders doing crazy
stuff! Where did you get the mone
</div>
</div>
&#13;
答案 1 :(得分:0)
只需删除所有div,然后只需将float:left
添加到img
img {float:left}
<img src="http://i.imgur.com/xCbC4o8.png"/>
et’s start with a bit of background. How did you get into angel investing? I was one of the early folks at eBay and by 1999 it was completely overrun by consultants from McKinsey, Bain and BCG. It went from being a cool fun startup to an MBA factory. Angel investing was an outlet for me to hang out with people I liked– startup founders doing crazy stuff! Where did you get the mone et’s start with a bit of background. How did you get into angel investing? I was one of the early folks at eBay and by 1999 it was completely overrun by consultants from McKinsey, Bain and BCG. It went from being a cool fun startup to an MBA factory. Angel investing was an outlet for me to hang out with people I liked– startup founders det’s start with a bit of background. How did you get into angel investing? I was one of the early folks at eBay and by 1999 it was completely overrun by consultants from McKinsey, Bain and BCG. It went from being a cool fun startup to an MBA factory. Angel investing was an outlet for me to hang out with people I liked– startup founders doing crazy stuff! Where did you get the moneoing crazy stuff! Where did you get the mone
et’s start with a bit of background. How did you get into angel investing? I was one of the early folks at eBay and by 1999 it was completely overrun by consultants from McKinsey, Bain and BCG. It went from being a cool fun startup to an MBA factory. Angel investing was an outlet for me to hang out with people I liked– startup founders doing crazy stuff! Where did you get the mone
或没有css在HTML中编写内联
<img style="float:left" src="http://i.imgur.com/xCbC4o8.png"/>