Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/85.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Html 我需要在标题描述中留出空间_Html_Css_Reactjs - Fatal编程技术网

Html 我需要在标题描述中留出空间

Html 我需要在标题描述中留出空间,html,css,reactjs,Html,Css,Reactjs,我需要在标题描述中留出空间,这意味着在我创建Reactjs应用程序(如下图所示)后,标题结尾下一段将从哪里开始 <p title={props.selectedEntity.address}> <strong> {" "} {props.selectedEntity.searc

我需要在标题描述中留出空间,这意味着在我创建Reactjs应用程序(如下图所示)后,标题结尾下一段将从哪里开始

                   <p title={props.selectedEntity.address}>
                      <strong>
                        {" "}
                        {props.selectedEntity.search_type === "individual"
                          ? "Address :"
                                : "N/A"}
                      </strong>
                      {' '}{props.selectedEntity.search_type === "individual"
                        ? props.selectedEntity.address
                          ? props.selectedEntity.address
                          : "N/A"}
                    </p>

{" "} {props.selectedEntity.search_type==“个人” ?地址: :“不适用”} {''}{props.selectedEntity.search_type==“个人” ?props.selectedEntity.address ?props.selectedEntity.address :“不适用”}


您可以通过在div中包装标题和段落,然后在div中添加(display:flex)样式来实现

<div class="container">
  <h1>title</h1>
  <p>paragraph</p>
</div>

你能检查一下下面的代码吗?希望它对你有用。在flex属性的帮助下,您可以根据需要设置标题和说明

请参阅此链接:

p{
宽度:216px;
显示器:flex;
显示:-webkit flex;
}
p强{
右边距:10px;
}

地址 这是长地址这是长地址这是长地址


你能分享你迄今为止所做的代码吗?检查我添加的代码我们已经根据你的要求更新了我们的答案。
.container{
  width: ;   //specify width for this to work
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
}