<分区>
<分区>
那不是我想要的 div 我只是无法发布它,因为它不符合某些要求。我以前从未使用过类似的东西,只需要帮助一个需要编程的大学元素。 我有这个:enter image description here
我只想让文本居中。 jsfiddle .net/etr1ok47/#&togetherjs=VfasppUOxh
最佳答案
在 this-p
类中使用 flex:
display: flex;
flex-direction: column;
justify-content: center;
关于html - 在 div 的中心制作文本,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51145934/
相关文章:
javascript - 在 html 中搜索 Javascript
jquery - 在 jquery slider 中处理不同大小的图像
javascript - div 中的 Google 新闻框
html - 用于外部链接的 Cakephp 2.x HTML 帮助程序不起作用
javascript - 在 Meteor 应用程序上,根据 Mongo 中的字段值向从 Mongo 接收的数据添加类
javascript - Handlebars 中的子串助手
javascript - Bootstrap 崩溃 : Close all children when root element is closed