douxian1895 2013-05-03 19:25
浏览 42
已采纳

CakePHP .actions按钮标签

I started coding in CakePHP lately and love the quick and easy interface framework it provides. I have one model that has kind of a long name and it is causing UI issues with the Action buttons. When I am in the CRUD index page for the model the text within the anchor tag displays outside of the background image used to make the button. Here is a link to a screenshot for what I am talking about...

http://imgur.com/xLD7Z3v

Does anyone know how to modify the CSS for this so that it will word wrap where necessary?

EDIT for Nunuser: Here is the HTML code for the button:

<div class="actions">
    <h3>Actions</h3>
    <ul>
        <li><a href="/users/add">New User</a></li>
        <li><a href="/user_types">List User Types</a></li>
        <li><a href="/user_types/add">New User Type</a></li>
        <li><a href="/user_statuses">List User Statuses</a></li>
        <li><a href="/user_statuses/add">New User Status</a></li>
        <li><a href="/region_program_offices">List Region Program Offices</a></li>
        <li><a href="/region_program_offices/add">New Region Program Office</a></li>
    </ul>
</div>

Here is the CSS Style for the button:

.actions li {
  list-style-type:none;
  margin:0 0 0.5em;
  padding:0;
  white-space:nowrap;
}
cake.generic.css
* {
}
cake.generic.css
ul, li {
  margin:0 12px;
}
cake.generic.css (line 66)
Inherited frombody
body {
  font-family:'lucida grande', verdana, helvetica, arial, sans-serif;
  font-size:90%;
}
  • 写回答

1条回答 默认 最新

  • dongtan7418 2013-05-04 20:09
    关注

    The default stylesheet is called cake.generic.css and is located in app/webroot/css/. Remove white-space: nowrap; from .actions li at line 498.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥60 版本过低apk如何修改可以兼容新的安卓系统
  • ¥25 由IPR导致的DRIVER_POWER_STATE_FAILURE蓝屏
  • ¥50 有数据,怎么建立模型求影响全要素生产率的因素
  • ¥50 有数据,怎么用matlab求全要素生产率
  • ¥15 TI的insta-spin例程
  • ¥15 完成下列问题完成下列问题
  • ¥15 C#算法问题, 不知道怎么处理这个数据的转换
  • ¥15 YoloV5 第三方库的版本对照问题
  • ¥15 请完成下列相关问题!
  • ¥15 drone 推送镜像时候 purge: true 推送完毕后没有删除对应的镜像,手动拷贝到服务器执行结果正确在样才能让指令自动执行成功删除对应镜像,如何解决?