我尝试使html页面引导程序兼容。所以布局不会改变,但它是有效的bootstrap.And我的意思是有效,它不会说:“相邻的链接没有正确分开”。我使用以下代码验证页面:http://achecker.ca/checker/index.php
这是html页面:
{request.mapparams(p)}
<se:format inputdata="{translation.arg(dtIn)}">
<se:rowformat expression="this.field(param)==request.query(p, default='')"><a class="list-group-item active" href="{url.addparameter(channel.link(this.field(Nr)), p, this.field(param))}"><span class="badge">{this.field(Count)}</span>{this.field(Title)}</a></se:rowformat>
<se:rowformat><ul><a class="list-group-item" href="{url.addparameter(channel.link(this.field(Nr)), p, this.field(param))}"><span class="badge">{this.field(Count)}</span>{this.field(Title)}</a></ul></se:rowformat>
<se:resultformat><div class="list-group">{this.result()}</div></se:resultformat>
</se:format>
我将ul元素添加到此:
<ul><a class="list-group-item" href="{url.addparameter(channel.link(this.field(Nr)), p, this.field(param))}"><span class="badge">{this.field(Count)}</span>{this.field(Title)}</a></ul>
但现在布局发生了变化。如何更改布局不会改变?
谢谢
例如,如果我这样做:
{request.mapparams(p)}
<se:format inputdata="{translation.arg(dtIn)}">
<se:rowformat expression="this.field(param)==request.query(p, default='')"><a class="list-group-item active" href="{url.addparameter(channel.link(this.field(Nr)), p, this.field(param))}"><span class="badge">{this.field(Count)}</span>{this.field(Title)}</a></se:rowformat>
<se:rowformat><li><span style="visibility:hidden"></span><a class="list-group-item" href="{url.addparameter(channel.link(this.field(Nr)), p, this.field(param))}"><span class="badge">{this.field(Count)}</span>{this.field(Title)}</a><span style="visibility:hidden"></span></li></se:rowformat>
<se:resultformat><div class="list-group">{this.result()}</div></se:resultformat>
</se:format>
我仍然看到一个黑点
答案 0 :(得分:0)
我这样解决了:
{request.mapparams(p)}
<se:format inputdata="{translation.arg(dtIn)}">
<se:rowformat expression="this.field(param)==request.query(p, default='')"><a class="list-group-item active" href="{url.addparameter(channel.link(this.field(Nr)), p, this.field(param))}"><span class="badge">{this.field(Count)}</span>{this.field(Title)}</a></se:rowformat>
<se:rowformat><li class="list-unstyled"><span style="visibility:hidden"></span><a class="list-group-item" href="{url.addparameter(channel.link(this.field(Nr)), p, this.field(param))}"><span class="badge">{this.field(Count)}</span>{this.field(Title)}</a><span style="visibility:hidden"></span></li></se:rowformat>
<se:resultformat><ul class="list-group">{this.result()}</ul></se:resultformat>
</se:format>
问题解决了:))