带有id问题的bootstrap popover上的div内容

时间:2012-10-17 05:12:46

标签: javascript twitter-bootstrap smarty

我在div on bootstrap pophover上关注jävi的帖子,但不知道如何为整个div添加id。我实际上想要当鼠标悬停到语言名称时,广东话或英语会弹出阅读,写作,听力,用他们的进度条说话。由于Smarty foreach,我不能把id = popover_content_wrapper放到每个技能......

的jsfiddle: http://jsfiddle.net/6TaQt/14/

CODE:

{foreach from=$complexElements key="complexElementKey" item="complexElementItem"}
   <div class="row-fluid">

{foreach from=$form_fields item=form_field}
{if $form_field.caption == "Language Name"}
  <h4><a class='danger' data-placement='above' title="Popover Title" href='#'>{display property=$form_field.id complexParent=$complexField complexStep=$complexElementKey}</a>&nbsp;</h4>
{else}
    <div id="popover_content_wrapper" style="display: none" style="display:inline">
        <label class="span4" for="slider">[[$form_field.caption]]</label>
            <div class="span8"> 
              <div class="progress progress-info progress-striped" rel="tooltip" title="{display property=$form_field.id complexParent=$complexField complexStep=$complexElementKey}%">
                <div class="bar" style="width: {display property=$form_field.id complexParent=$complexField complexStep=$complexElementKey}%;"></div>
              </div>
            </div>
    </div>
{/if}
{/foreach}
  </div>
{/foreach}

1 个答案:

答案 0 :(得分:0)

在这个线条样式属性中定义了两次,单独使用,我不确定,希望它有所帮助

<div id="popover_content_wrapper" style="display: none" style="display:inline">