我有Nav物品:
[
'label' => 'All',
'url' => ['project/index'],
],
[
'label' => 'Done',
'url' => ['project/index', 'assigned' => 'done'],
],
Run Code Online (Sandbox Code Playgroud)
但是active当我去project/index&assigned = done时,他们都有一个类.只有当item的url值严格等于$routevalue时,我才能强制附加这个类?
我有一个text input:
<input type="text" name="test1" value="jj" style="padding:0px;font-size:70px; font-family: 'Times New Roman'">
Run Code Online (Sandbox Code Playgroud)
但第一个“j”字符对于 来说并不完全可见Times New Roman font-family。可能有什么问题?
编辑
就我而言padding-left没有帮助。我添加一下padding-left:30px,结果是:
我想了解如何在Yii2中使用Modal窗口处理表单的基础知识?这是我目前的理解,如果有人能解释我错过了什么,我将不胜感激.所以,我有一个带有记录的ListView.每条记录都包含一个按钮.该按钮打开一个带有Form的Modal:
echo Html::a('<span class="glyphicon glyphicon-bell" aria-hidden="true"></span>', ['#'],[
'id' => $model->id,
'class' => 'linkbutton',
'data-toggle'=>'modal',
'data-tooltip'=>'true',
'data-target'=>'#submit_vote'.$model->id,
'title'=> 'Assign'
]);
Modal::begin([
'size' => 'modal-lg',
'options' => [
'id' => 'submit_vote'.$model->id,
],
'header' => '<h2>Create Vote</h2>',
'footer' => 'Footer'
]);
ActiveForm::begin([
'action' => 'vote/vote',
'method' => 'post',
'id' => 'form'.$model->id
]);
echo Html::input(
'type: text',
'search',
'',
[
'placeholder' => 'Search...',
'class' => 'form-control'
]
);
echo Html::submitButton(
'<span class="glyphicon glyphicon-search"></span>',
[
'class' => 'btn btn-success',
]
);
ActiveForm::End();
Modal::end();
Run Code Online (Sandbox Code Playgroud)
在Form'action'中,我写了投票/投票和方法帖子.所以我希望在我的VoteController的actionVote函数中发布数据.
public …Run Code Online (Sandbox Code Playgroud)