简体   繁体   中英

Drawing rectangles with Jquery

I have a div called #llens where I need to draw some boxes ( div's). I can't understand why is not drawing. I'm a litle newbie so please be patient if I'm make a great mistakes :P

that's the div :

  <div id="estructura" class="collapse ">
    <section data-toggle="buttons-radio" class="btn-group btn-group-vertical">
        <header id="professor" class="btn btn-primary boto_funcio ">
             <h2>Professors</h2> 
        </header>
        <header id="alumne" class="btn btn-primary boto_funcio ">
             <h2>Alumnes   </h2> 
        </header>
        <header id="text" class="btn btn-primary boto_funcio ">
             <h2>Text      </h2> 
        </header>
    </section>
</div>
<section class="span9">
    <div id="llens"></div>
    <!-- llens -->
</section> 

Here is the example : http://jsfiddle.net/blackersoul/PLWkS/

I 've done a fork from the code there : http://jsfiddle.net/lollero/kDmqw/

Sometimes a html element is not displayed when it is empty. Try <div id="llens">&nbsp;</div> .

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