如何顯示圖像底部的文字(另一個div元素)?如何在圖片底部顯示文字(另一個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
我怎麼能這樣做?
CSS編寫內聯,您可以把所有的內容到一個DIV用'寬度:100%'(沒有任何'float'屬性),讓你的形象'浮動:left'屬性。 –
使用HTML5'