1
我使用CGridview
和CButtonColumn
,我使用css来设置按钮图像。是否有可能隐藏/删除由类产生的图像标签?删除/隐藏CButtonColumn的图像标签
我使用CGridview
和CButtonColumn
,我使用css来设置按钮图像。是否有可能隐藏/删除由类产生的图像标签?删除/隐藏CButtonColumn的图像标签
你有没有试过通过CSS来做到这一点?
.buttonClass {
display: none;
}
您还可以设置xButtonImageUrl到false
避免渲染img标签:
array(
'class'=>'CButtonColumn',
'deleteButtonImageUrl'=>false,
'updateButtonImageUrl'=>false,
'viewButtonImageUrl'=>false
)
检查this part在文档:
的删除按钮的图像URL。如果未设置,则将使用集成图像。您可以将此属性设置为false来代替呈现文本链接。
让我知道你是否需要任何澄清 –