我遇到了为某个div强加正确宽度的问题。我的代码如下:在HTML5中为div元素中的元素施加适当宽度的困难
Our offers are the best on the city !! Check out our amazing activities !!!
One of the best in the world, if not the best, garanty !!!
Feel what your granpa felt in his youth, back to the fifties baby !!
I thought pirate of the carabbean was all a hollywood set up. No ! We got it all wrong !!
而CSS如下:
.flt-sec
{
width:25%;
float:left;
}
nav
{
width:100%;
}
nav a:link
{
width:100%;
}
section
{
width:100%;
}
但即使有这样我得到一个nav:a标签在div容器的结束处,如下:
其他div部分似乎是确定和行为,他们的方式应该(nav:a和子部分都尊重div容器宽度)
2013-06-05
Debugger
+0
您是否有链接到网站或可以发布的简化[jsfiddle](http://jsfiddle.net)? –
+0
我会尝试在线上传它,并让你知道 –