0

I have a listview control attached to a DataPager (or the other way around!) and am wondering if anybody can tell me how you can set the width on the NumericPagerField field? I have tried setting it via the NumericButtonCssClass and things like background colors, borders, padding etc. work but anytime I try explicitly stating a width, whatever value I state does not take affect.

Thanks

4

1 回答 1

0

datapager 中的按钮在页面中呈现为<a><a/>. “a”元素具有默认值 display: inline;并且不接受任何宽度。要应用您的宽度,您需要添加display:inline-block;您的 css 样式

.NumericButtonCssClass
{
    width:25px;
    display:inline-block;
}
于 2013-05-15T07:37:44.347 回答