为什么 drupal 视图 css 类名会改变
目前,Drupal 视图遇到了一个令人恼火的怪癖,它将更改提供的 css 类名称。
例如,如果我添加类 container_12
,它将呈现为 container-12
。
知道如何关闭它吗?
谢谢。
Currently experiencing an irritating quirk of Drupal views where it will change the provided css class name.
For example, if I add the class container_12
it will be rendered as container-12
.
Any idea how to turn this off?
Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
Views 这样做是因为 Drupal 的 CSS 编码标准。您可以使用
phptemplate_preprocess_views_view(&$vars)
更改行为。这是一个例子。另外,我只是建议您更改 css,如果您使用框架,您可以在 drupal.org 上轻松找到带有框架的基本主题。
Views doest it because of CSS codeing standards from Drupal. You can change the behavior with
phptemplate_preprocess_views_view(&$vars)
. Here is an example.Also, I just can advise you to change you css, if you use a framework you can easily find a base theme with you framework on drupal.org.