我忙于使用我的投资组合网站,并且我会让它响应。从浮动:左右两边到彼此之间
大多数东西都是响应,但我正在努力与contact page。
代码:
.footerContact .informatie
{
float: left;
margin-left: 20%;
margin-top: 10%;
color: white;
width: 250px;
}
.footerContact .form
{
float: right;
margin-right: 20%;
margin-top: 10%;
color: white;
width: 300px;
}
我现在用一个媒体查询将它们放在对方的时候去的屏幕尺寸较小为1115px
例子可以发现here
哪有我做这个?
@media only screen and (max-width: 1115px)
{
.footerContact .informatie
{
float: none;
margin-left: 20%;
margin-top: 10%;
color: white;
width: 250px;
}
.footerContact .form
{
float: none;
margin-left: 20%;
margin-top: 100px;
color: white;
width: 250px;
}
}
你看过[flexbox](http://css-tricks.com/snippets/css/a-guide-to-flexbox/)吗? – 2014-10-17 08:16:51