gpt4 book ai didi

javascript - Angular4 提示 HTML 中的中心元素是未定义的函数

转载 作者:行者123 更新时间:2023-11-30 15:07:27 26 4
gpt4 key购买 nike

我可以使用什么其他标签来代替 <center> <\center>正如 angular4 提示 center 是一个未定义的函数

最佳答案

尝试 1 编辑

<center>This text will be centered.
<p>So will this paragraph.</p></center>

尝试 2(CSS 替代方案)编辑

<div style="text-align:center">This text will be centered.
<p>So will this paragraph.</p></div>

尝试 3(CSS 替代方案)编辑

<p style="text-align:center">This line will be centered.<br>
And so will this line.</p>

希望对您有所帮助。

关于javascript - Angular4 提示 HTML 中的中心元素是未定义的函数,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45531162/

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