简体   繁体   中英

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. This happening only in IE7. What i have to change for this to display this in horizontally?

Thanks in Advance

Please don't use the marquee HTML tag

To make div elements display horizontally try something like this :

​ul li div {
    float:left;
}​

example here

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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