-5
我在我的页面上有一个div;这个div在桌面视图中包括img(顶部div)和文本(div底部);我想要移动视图,img和文本内联。你可以帮我吗 ? enter image description here用@Media查询改变主题
我的代码:
<div class="ph-cnt mui--z2 col-lg-2 col-lg-offset-1 col-md-2 col-md-offset-1 col-sm-10 col-md-offset-1 col-xs-10 col-xs-offset-1 ">
<div class="img-ph-cnt " align=center>
<img src="img/telephone-operator.svg" alt="Phone" width="100px" class="img-responsive">
</div>
<div class="content-ph-cnt" align=center>
<h4>Phone</h4>
<h2>00225555</h2>
<h4>fax</h4>
<h2>1223456</h2>
</div>
你尝试过什么? – jhpratt
使用媒体查询。你的头衔就是答案。按照在这里询问,看看这个:[mcve]和这个:[问] –