如何设置表单视图寻呼机的样式

发布于 2024-10-17 12:07:52 字数 69 浏览 7 评论 0原文

您好,我正在使用带有内置寻呼机的表单视图。我想在各个页码链接之间添加空格。通过财产来做到这一点吗?可以用CSS样式来完成吗?

Hi I'm using a formview with the built in pager. I'd like to add space in between the individual page number link. Do this though a property? Could it be done with CSS styles?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

白馒头 2024-10-24 12:07:52

FormView 只显示单个项目 - 它不像 ListView 或 GridView 那样显示可分页的数据列表。但是,为了回答您的问题,这应该会让您在内置分页器控件中格式化页面链接(以将它们分开更多):

<asp:DataPager runat="server">
    <Fields>
        <asp:NumericPagerField NumericButtonCssClass="numericButtonCSS" />
    </Fields>
</asp:DataPager>

然后在您的 head 部分中

<style type="text/css">
    .numericButtonCSS 
    {
        margin-left: 5px;
        margin-right: 5px;
    }
</style>

Well the FormView only displays a single item - it's not like a ListView or GridView that displays lists of data that can be paged. But, to answer your question, this should get you going toward formatting the page links (to space them out more) in the built-in pager control:

<asp:DataPager runat="server">
    <Fields>
        <asp:NumericPagerField NumericButtonCssClass="numericButtonCSS" />
    </Fields>
</asp:DataPager>

And then in your head section

<style type="text/css">
    .numericButtonCSS 
    {
        margin-left: 5px;
        margin-right: 5px;
    }
</style>
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文