[英]Where can i find the div defined for the operations menu in yii.?
Can anybody tell me where can i find the div
for the operations
menu (the one in red in the image) in yii, I looked every where but could not find it. 谁能告诉我在哪里可以找到
div
中operations
菜单的div
(图像中的红色),我到处都在寻找,但找不到。 Here is the screenshot: 这是屏幕截图:
Thanks. 谢谢。
The output for this is generated in protected/views/layouts/column2.php
. 其输出在
protected/views/layouts/column2.php
。 If you have installed a Bootstrap theme the path can be themes/bootstrap/views/layouts/column2.php
. 如果您已经安装了Bootstrap主题,则路径可以是theme
themes/bootstrap/views/layouts/column2.php
。
The output is generated by the CPortlet
(This creates the box) and the CMenu
(This creates the links) widgets. 输出由
CPortlet
(这将创建框)和CMenu
(这将创建链接)小部件生成。 You can use this article to style the CMenu: http://www.yiiframework.com/wiki/525/customizing-the-cmenu-widget/ 您可以使用本文来设置CMenu的样式: http ://www.yiiframework.com/wiki/525/customizing-the-cmenu-widget/
The CPortlet can be styled by setting a CSS class via the htmlOptions . 可以通过htmlOptions设置CSS类来设置CPortlet的样式。
In your views folder, find admin.php
file. 在您的views文件夹中,找到
admin.php
文件。
In admin.php
, you can see: 在
admin.php
,您可以看到:
$this->menu=array(
array('label'=>'Create New Company', 'url'=>array('create'))
);
You can change the style in your layout view file. 您可以在布局视图文件中更改样式。
我不明白您要查找的内容,但是如果您要查找包装该Portlet的div的类或ID,则可以右键单击浏览器,单击查看源 ,然后可以找到所需的类或ID。 div,然后您可以将其添加到CSS或javascript代码中。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.