
此主题相关图片如下:222.png

With wb.AddButtonGroup("", "btg1", False)
If page > 0 Then
.Add("btnPrev", "上一页", "button").Attribute = " & (page - 1) & "','" & e.GetValues("type") & "')"" style='background-color: #ADD8E6;color: #000000;padding: 5px 15px;display: inline-block;font-size: 16px;margin: 4px 2px;border-radius: 15px;box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);text-align: center; margin: 10px auto;max-width: 150px;'" ''为了显示内容的横向底色可以满屏幕,翻页也需要执行一次函数(5)
End If
If Endrow < count Then
.Add("btnPrev", "下一页", "button").Attribute = " & (page + 1) & "','" & e.GetValues("type") & "')"" style='background-color: #ADD8E6;color: #000000;padding: 5px 15px;display: inline-block;font-size: 16px;margin: 4px 2px;border-radius: 15px;box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);text-align: center; margin: 10px auto;max-width: 150px;'"
End If
End With
此主题相关图片如下:img_0529(20240714-214200).png

当只出现“下一页”按钮的时候,能否居中?