How to align an input tag to the center without specifying the width?

后端 未结 7 1513
不思量自难忘°
不思量自难忘° 2020-12-24 11:30

I have these HTML and CSS:

相关标签:
7条回答
  • 2020-12-24 11:55

    write this:

    #siteInfo{text-align:center}
    p, input{display:inline-block}
    

    http://jsfiddle.net/XfSz6/

    0 讨论(0)
提交回复
热议问题