所以我有一个手动制作的按钮,它位于我闪亮的标题的右上角,然后我想使用 margin-left 将 ui 移动到左侧,但它不起作用这是我的代码:
output$logoutbtn <- renderUI({
req(USER$login)
tags$li(a("Logout",
href="javascript:window.location.reload(true)"),
class = "dropdown",
style = "background-color: #eee !important; border: 0;
font-weight: bold; margin:5px; padding: 10px; border-radius: 20px; transition: background-color 0.3s ease-out; height: 60px; margin-left: 50px !important;",
onmouseover = "this.style.backgroundColor='#f4bc4b'",
onmouseout = "this.style.backgroundColor='#eee'")
})
以及如何将文本位置移动到 ui 的中间
我想在箭头中移动它
更新:它可以使用 margin-right 但我仍然不知道如何将文本移动到中间