我有这个代码,当我点击它时,看看我想要的137值只显示但是单词" class"也显示了
@string src = // Get image path from Sitecore().Field("Picture");
<div style="background: url(@src) left top no-repeat;">
@if (IsInEditingMode)
{
<h3>Backgroiund Picture: @Editable(m => m.Picture)</h3>
}
</div>
这是portal.php代码
<a rel="facebox" href="portal.php?id='.$rowa["_id"].' class="icon-remove"></a><i class="remove glyphicon glyphicon-remove-sign glyphicon-white"></i>
答案 0 :(得分:3)
您有HTML错误
<a rel="facebox" href="portal.php?id='.$rowa["_id"].'" class="icon-remove">
^^^
而不是
<a rel="facebox" href="portal.php?id='.$rowa["_id"].' class="icon-remove">
^^^^^^^^^^
检查href
属性未完全关闭的区别
答案 1 :(得分:0)
请检查html标签属性,忘记关闭标签属性中的"
答案 2 :(得分:0)
使用此
<a rel="facebox" href="portal.php?id='<?php echo $rowa["id"]?>'" class="icon-remove"></a><i class="remove glyphicon glyphicon-remove-sign glyphicon-white"></i>