Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/76.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 - Fatal编程技术网

html页脚将其添加到行尾

html页脚将其添加到行尾,html,css,Html,Css,我有如下页脚,它显示正确的公司名称添加到页脚行的左侧 <footer> <p>Company, Inc.</p> </footer> 公司 我想在页脚行的末尾添加联系人链接,该链接将位于行的末尾 我试过这个 <footer> <p>Company, Inc.</p> <p>phone number:123456789</p> </foot

我有如下页脚,它显示正确的公司名称添加到页脚行的左侧

<footer>
    <p>Company, Inc.</p>
</footer>

公司

我想在页脚行的末尾添加联系人链接,该链接将位于行的末尾

我试过这个

<footer>
        <p>Company, Inc.</p>
        <p>phone number:123456789</p>
</footer>

公司

电话号码:123456789


但是它一个叠在另一个上

使用
页脚{display:flex;justify content:space between;}
将它们放在同一行上,由页脚中的所有可用空间隔开

footer{
显示器:flex;
证明内容:之间的空间;
}

公司

电话号码:123456789


使用
页脚{display:flex;justify content:space between;}
将它们放在同一行上,由页脚中的所有可用空间分隔

footer{
显示器:flex;
证明内容:之间的空间;
}

公司

电话号码:123456789


公司

电话号码:123456789


公司

电话号码:123456789


thnx是否需要在脚本中添加页脚{….}?我在上面添加了html,但它实际上显示
footer{display:flex;justify content:space between;}
onpage@user2661518要么将其放入
标记中(最好是在
中),要么将其放入带有
标记的外部样式表中。我是否需要在脚本中添加页脚{…}?我在上面添加了html,但它实际上显示
footer{display:flex;justify content:space between;}
onpage@user2661518或者将其放入
标记中(理想情况下是在
中),或者将其放入带有
标记的外部样式表中
<footer>
    <p style="display:inline;">Company, Inc.</p>
    <p style="display:inline;">phone number:123456789</p>
</footer>