gpt4 book ai didi

css - 语义用户界面 : Setting the column in center not it's content

转载 作者:太空宇宙 更新时间:2023-11-04 03:22:19 24 4
gpt4 key购买 nike

尝试使用它,但它也在对齐内容。

<div class="center aligned ui grid">
<div class="ten wide column">
<h2 class="ui header">
Your Blog
<div class="sub header">A blog application implemented with Semantin-UI/SpringBoot/MongoDB/.</div>
</h2>

<div class="ui divided list" th:each="post : ${posts}">
<div class="item">
<div class="content">
<a class="header" th:text="${post.title}">Title</a>
<div id="blogId" th:text="${post.id}" style="display: none">Id</div>
<div class="description" th:text="${post.content}">Content</div>
<div class="ui divider"></div>
</div>
</div>
</div>
<a href="/createPost">NewPost</a>
</div>
</div>

最佳答案

只需添加 left aligned到你的内心column <div> :

<div class="center aligned ui grid">
<div class="ten wide left aligned column">
...
</div>
</div>

来源:http://semantic-ui.com/collections/grid.html#specifying-alignment

关于css - 语义用户界面 : Setting the column in center not it's content,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27710417/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com