Is a <button> allowed to have display:grid? [duplicate]
问题 This question already has answers here : Flexbox not working on button or fieldset elements (2 answers) Closed last year . or, more generally, are there any elements that can't be styled with display:grid ? Consider: button, div { display: grid; grid-template-columns: 50px 50px; } /* Nevermind these, they're just for a consistent display */ button, div { border: 0; background-color: gray; color: black; width: 100px; text-align: center; font-family: sans-serif; font-size: 14px; padding: 0; }