如何實現按鈕水平居中

button是一個行內塊級元素display:inline-block;html 因此處理方式很簡單,能夠用如下兩種方式:code 方式一:htm <div style="text-align:center"> <button>按鈕居中</button> </div> 方式二:class <div> <button style="di
相關文章
相關標籤/搜索