你可以通过添加一些额外的div和修复一些CSS来实现。
看怎么用这个codepen做到了:http://codepen.io/anon/pen/RPWybE
HTML:
<div class="section group">
<div class="subgroup1">
<div class="col span_1_of_3">
<a href="http://me14ch.leedsnewmedia.net/slate/shop.html" class="button"> Donate <p> Furniture and Electricals </p> </a>
</div>
<div class="col span_1_of_3">
<a href="http://me14ch.leedsnewmedia.net/slate/shop.html" class="button"> Find <p> your nearest store </p> </a>
</div>
<p>
Slate was set up to run environmentally friendly projects for the benefit of the local community, and offer work opportunities to people with learning difficulties. Our charity is divided into two main sections of which are the two Feel Good Furniture Shops and the Feel Good Cafe. Please browse our website to find out more about us, donate your unwanted furniture or take a look at our stock catalogue to redecorate your living space!
</p>
</div>
<div class="subgroup2">
<div class="col span_1_of_3">
<form action="" method="post" class="subscribe-form">
<h4> Subscribe to our blog! </h4>
<label>
<span> Name </span>
<input id="name" type="text" name="name" placeholder="full" <="" label="">
<label>
<span> Email </span>
<input id="email" type="email" name="email" placeholder="[email protected]" <="" label="">
<span> </span>
<input type="button" class="button4" value="Send">
</label>
</label>
</form>
</div>
</div>
CSS:
/* NEW CSS */
.group{width:100%;}
.subgroup1{
height:200px;
width: 64.54%;
float:left;
}
.subgroup1 .col{width:48%;}
.subgroup2{
float:left;
width:25%;
}
.subgroup2 .col{width:100%;}
您好,欢迎StackOverflow上。请在此处粘贴相关代码,以便我们可以更快地提供帮助,并且链接也可以停止工作,并且稍后此问题将无意义。无论如何,这个问题是你的HTML结构。你有一个div里面的3个按钮,它们不允许下一个有文本的div,因为subscribe btn比较大。 –
正如@JoelAlmeida所说,为每个按钮创建单独的'div',并相应地安排另一个'div'。 –