如何使div响应

时间:2014-04-21 06:57:36

标签: html css wordpress responsive-design styles

我正在使用cutomizeit主题在wordpress中处理site。所有内容都是自适应的,直到我自定义添加到我的主页

<div class="hilight-hometext">
<div id="hilightbox">
<div class="hilightbox-text">
<h2>At Salisbury we want everyone to understand their landscaping choices</h2>
<p>Our latest landscaping innovation is our Outdoor Vision questionnaire. We’ll guide you through a set of questions that will help you realize what you want out of your yard.    </p>

</div>
<!-- end tier 2 text -->
<div class="hilightbox-action">

<a class="myButton" href="resources/the-outdoor-vision-tool/">GET STARTED</a>

<p>Your Outdoor Vision</p>

</div>
<!-- end tier 2 action -->
</div></div>

这个div没有响应。我可以让它响应,以便一切顺利。请帮忙!!谢谢!

2 个答案:

答案 0 :(得分:0)

添加CSS max-width / min-width&amp;最大高度/最小高度!

答案 1 :(得分:0)

更改span4 fp-two类css @media并根据媒体更改图片宽度。

.span4.fp-two{
  float : left;
}