How to center div to the display while having a dynamic width?

后端 未结 0 532
北海茫月
北海茫月 2020-12-11 08:55

I have a div whose width I\'d like to be dynamic based off of text that is inside the div. I\'ve found that this is possible by setting the div\'s display to inline-block; h

相关标签:
回答
  • 消灭零回复
提交回复
热议问题