简体   繁体   English

用jQuery绘制矩形

[英]Drawing rectangles with Jquery

I have a div called #llens where I need to draw some boxes ( div's). 我有一个称为#llens的div,需要在其中绘制一些框(div的)。 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 我是小新手,所以如果我犯了个大错误,请耐心等待:P

that's the div : 那就是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/ 这是示例: http : //jsfiddle.net/blackersoul/PLWkS/

I 've done a fork from the code there : http://jsfiddle.net/lollero/kDmqw/ 我从那里的代码完成了一个分支: http : //jsfiddle.net/lollero/kDmqw/

Sometimes a html element is not displayed when it is empty. 有时html元素为空时不显示。 Try <div id="llens">&nbsp;</div> . 尝试<div id="llens">&nbsp;</div>

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

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