css至prvent换行后 [英] css to prvent line break after
本文介绍了css至prvent换行后的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
Hi,
I've a "div" tag. After this tag ends, a linebreak is automatically added. I don't want this line break, what should I do?
CSS for the box:
"div.box
{
width:200px;
padding:10px;
border:1px solid gray;
margin:0px;
}"
And here's the html:
"<body>
<div>blah blah blah</div>
<div>helloo</div>
<div>tryyyy</div>
</body>"
Now, I dont want any line break among these elements. What to do?
推荐答案
您必须浮动div的
You have to float your div''s
div{
float:left;
width:100px;
}
这篇关于css至prvent换行后的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文