开发者

a box appear next to an li element

开发者 https://www.devze.com 2023-01-15 07:36 出处:网络
i have a box : #box1 { height:100px; width:208px; } and a list <li id=\"first\"><strong>FIRST</strong>

i have a box :

#box1 { 
            height:100px;
            width:208px;  
            } 

and a list

<li id="first"><strong>FIRST</strong>
&l开发者_Go百科t;/li>

<li id="second"><strong>SECOND</strong>
</li>

<li id="third"><strong>THIRD</strong>
</li>

<li id="fourth"><strong>FOURTH</strong>
</li>

with jquery i can make the box appear when i click on an li element...but i want the box to appear next to the element and not right down of the li... i just want to appear right next to it...


Can you try display:inline-block; on the ul element. just a wild guess. would need more details.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号