简体   繁体   English

如何修改django-tables2表的视觉结构?

[英]How to modify django-tables2 table visual structure?

I started to work with Django-tables2 . 我开始使用Django-tables2 I'm trying to figure out how to modify structure of the table. 我试图弄清楚如何修改表的结构。 As you can see, labels resp. 如您所见,标签分别。 columns are very close so it's har do read them. 列非常接近,因此必须阅读它们。

I'm looking for some simple solution, for example using some widget . 我正在寻找一些简单的解决方案,例如使用一些widget

How can I change it? 我该如何更改?

在此处输入图片说明

this is a css issue, you can add stylesheets which alter the way you view table. 这是一个CSS问题,您可以添加样式表来更改查看表格的方式。 eg add http://yui.yahooapis.com/pure/0.6.0/tables-min.css ( from the amazing purecss by yahoo) to your html code and then add the pure-table class to you root table element. 例如,将http://yui.yahooapis.com/pure/0.6.0/tables-min.css (来自yahoo惊人的purecss)添加到您的html代码中,然后将pure-table类添加到根表元素。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM