Css 如何获得ZURB基础单元中的DIV元素以新线开头 我在DIV上有两个元素,在Zurb基金会的细胞中,例如: <div className="cell small-8 medium-6 large-8 title"> <h6>title of the item</h6> <p>description of the item</p> </div> 项目名称
项目说明 它们在同一条线上显示Css 如何获得ZURB基础单元中的DIV元素以新线开头 我在DIV上有两个元素,在Zurb基金会的细胞中,例如: <div className="cell small-8 medium-6 large-8 title"> <h6>title of the item</h6> <p>description of the item</p> </div> 项目名称,css,zurb-foundation,Css,Zurb Foundation,项目说明 它们在同一条线上显示 项目标题项目说明 但我希望这两个元素在不同的行中 项目的标题 项目描述您的div使用的是“className”,而不仅仅是“class”。试试这个变化 问题在于语法。试试这个: <div class="cell small-8 medium-6 large-8 title"> <h6>title of the item</h6> <p>description of the item</p> &l
项目标题
项目说明
但我希望这两个元素在不同的行中
项目的标题
项目描述
您的div使用的是“className”,而不仅仅是“class”。试试这个变化 问题在于语法。试试这个:
<div class="cell small-8 medium-6 large-8 title">
<h6>title of the item</h6>
<p>description of the item</p>
</div>
项目名称
项目说明
我无法在您的代码中重现该问题()。你能提供一份工作吗?