简体   繁体   English

DIV内部有多个DIV-IE7中的新行

[英]Multiple DIV inside DIV - new line in IE7

My using below code 我使用下面的代码

<div>
<MARQUEE>
<ul>
<li>
<div>1</div>
<div>2</div>
<div>3</div>
</li>
</ul>
</MARQUEE>
</div>

The problem is that 1,2,3 are displayed vertically. 问题是1,2,3是垂直显示的。 This happening only in IE7. 这仅在IE7中发生。 What i have to change for this to display this in horizontally? 我必须对此进行什么更改才能水平显示?

Thanks in Advance 提前致谢

Please don't use the marquee HTML tag 请不要使用字幕HTML标记

To make div elements display horizontally try something like this : 要使div元素水平显示,请尝试如下操作:

​ul li div {
    float:left;
}​

example here 这里的例子

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM