我蛋糕烘焙 ( cake bake) 一个测试安装,它产生了产品控制器及其视图,例如 index.cpt、add.cpt、edit.ctp 等。我正在查看这些视图正在使用的 CSS 文件,并且有两个部门:action和products index。
我actions在 CSS 文件中看到了 div 标签,但没有看到products index. 这些部门的代码如下。
/** containers **/
div.form,
div.index,
div.view {
float:right;
width:76%;
border-left:1px solid #666;
padding:10px 2%;
}
div.actions {
float:left;
width:16%;
padding:10px 1.5%;
}
我的问题是:
为什么
products index's 的参数定义在下div.view?我看到
div.form并用一个而不是空括号div.index结束他们的行。,这是什么意思?现在页面被垂直分成两个如下。
--------------------- | | | | | | | | | | | | | | | ---------------------
制作以下内容的理想方法是什么?是否可以单独使用这些 div 标签进行以下操作,还是应该考虑使用表格?我想将导航栏放在左侧和顶部,如所有页面所示。我正在使用app/views/layouts/default.ctp和this->element()。
---------------------
| | |
| |--------------|
| | |
| | |
| | |
---------------------