Css 使用<;时如何更改列的宽度;显示:列>;使用表格布局时:固定

Css 使用<;时如何更改列的宽度;显示:列>;使用表格布局时:固定,css,tablelayout,displaytag,Css,Tablelayout,Displaytag,我已经指定了栏的宽度,但是我看不到宽度有任何变化。请帮助我。提前谢谢 我的代码: <div style="height: auto;"> <display:table style="width:100%; position: relative;left:0px;table-layout:fixed;" pagesize="5"> <display:column sortable="true" style="width: 80%;text-align

我已经指定了栏的宽度,但是我看不到宽度有任何变化。请帮助我。提前谢谢

我的代码:

<div style="height: auto;">
        <display:table style="width:100%; position: relative;left:0px;table-layout:fixed;" pagesize="5">

<display:column sortable="true" style="width: 80%;text-align: left;word-wrap:break-word;">

        </display:column>

        <display:column style="width: 20%;text-align: left;"  title="Date"  />
        </display:table>

您不能在display标记中设置宽度和其他css元素,因为display标记在内部使用自己定义的css(diplaytag.css),在编译jsp页面时会调用它

<display:table style="width:100%;

它对我有用

<link href="styles/displaytag.css" rel="stylesheet" type="text/css" />
<display:column property="propertyNamed" headerClass="sortable" titleKey="title" style="width:100px;"/>