这通常是一项简单的任务,但我只花了一个多小时的时间,似乎没有有效的答案。
我只想在图像周围换行几个段落。我已经尝试了所有我能想到或找到的div和styling的组合,但都没有用。任何帮助都将不胜感激。
<div class="row">
<div class="col-sm-12" id="aboutCol">
<p>Class is dead,” says Foucault; however, according to Reicher, it is not so much class that is dead, but rather the absurdity, and some would say the paradigm, of class. However, the subject is interpolated into a postpatriarchialist dialectic theory that includes consciousness as a totality." Lorizzle ipsum bling bling sit amizzle, consectetuer adipiscing elit. Nizzle sapien velizzle, bling bling volutpat, suscipit , gravida vel, arcu. Check it out hizzle that's the shizzle. We gonna chung erizzle. Fo izzle dolor fo turpis tempizzle tempor. Gangsta boom shackalack mofo et turpizzle. Sizzle izzle tortor. Pellentesque uhuh ... yih!</p>
<p>Tendrils of gossamer clouds! Globular star cluster explorations permanence of the stars dream of the mind's eye dispassionate extraterrestrial observer, of brilliant syntheses, how far away, Flatland, Sea of Tranquility rogue! Stirred by starlight how far away! Radio telescope hydrogen atoms something incredible is waiting to be known. Science? Consciousness across the centuries made in the interiors of collapsing stars.</p>
<p>As a patch of light, Orion's sword quasar cosmic ocean. Kindling the energy hidden in matter muse about, stirred by starlight and billions upon billions upon billions upon billions upon billions upon billions upon billions.</p>
<div id="profPic">
<img class="profPics" src="/images/profile.jpg" alt="Profile Picture">
</div>
</div>
</div>
<br>
<div class="row">还有css..。
#profPic {
width: 25%;
float: right;
margin-left: 20px;
margin-bottom: 20px;
}
#profPic img {
max-width: 100%;
border-radius: 50%;
filter: grayscale(30%);
}发布于 2017-12-16 09:42:44
这是因为图像在文本下方。右侧浮动图像之后的文本将围绕图像流动。在此之前的文本已经布局,不受后续内容的影响。
将图像向上移动到文本上方以查看所需的布局。
发布于 2017-12-16 09:43:21
您的图片在包装器div中,但文本不在。尝试使用two COL,如下所示。
<div class="row">
<div class="col-sm-8" id="aboutCol">
<p>Class is dead,” says Foucault; however, according to Reicher, it is not so much class that is dead, but rather the absurdity, and some would say the paradigm, of class. However, the subject is interpolated into a postpatriarchialist dialectic theory that includes consciousness as a totality." Lorizzle ipsum bling bling sit amizzle, consectetuer adipiscing elit. Nizzle sapien velizzle, bling bling volutpat, suscipit , gravida vel, arcu. Check it out hizzle that's the shizzle. We gonna chung erizzle. Fo izzle dolor fo turpis tempizzle tempor. Gangsta boom shackalack mofo et turpizzle. Sizzle izzle tortor. Pellentesque uhuh ... yih!</p>
<p>Tendrils of gossamer clouds! Globular star cluster explorations permanence of the stars dream of the mind's eye dispassionate extraterrestrial observer, of brilliant syntheses, how far away, Flatland, Sea of Tranquility rogue! Stirred by starlight how far away! Radio telescope hydrogen atoms something incredible is waiting to be known. Science? Consciousness across the centuries made in the interiors of collapsing stars.</p>
<p>As a patch of light, Orion's sword quasar cosmic ocean. Kindling the energy hidden in matter muse about, stirred by starlight and billions upon billions upon billions upon billions upon billions upon billions upon billions.</p>
</div>
<div class ="col-sm-4" id="profPic">
<img class="profPics" src="/images/profile.jpg" alt="Profile Picture">
</div>
</div>
https://stackoverflow.com/questions/47841787
复制相似问题