gpt4 book ai didi

html - 为什么此文本未与移动中心对齐?

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

这是正文。没有其他指示对齐的 css 或 html 命令。

这是 jsfiddle: https://jsfiddle.net/9t4afmx3/

为什么移动设备要左对齐?

<body>

<p align="center"><img src="Screen Shot 2016-05-04 at 12.40.50 PM.png" width="1280" height="434.6" usemap="#Map" align="center" border="0" />
<map name="Map" id="Map">
<area shape="rect" coords="56.7,340.1,344.8,434.6" href="ourteam" />
<area shape="rect" coords="472.37,340.1,755.8,434.6" href="ourservices" />
<area shape="rect" coords="944.7,340.1,1228.15,434.6" href="aboutchillcreatives" />
<area shape="rect" coords="472.30,500,804,5150" href="ourservices" />
</map>
</p>


<div align="center">
<pre class="chillfont"><span class="chillfont">CHILL CREATIVES IS</span>

<span class="chillfont">FORFRONT...</span><span class="BLACKWHITE">IN AN
</span><span class="BLACKWHITE">UNEQUIVOCALLY
</span><span class="BLACKWHITE">CHILL FASHION.</span>
<a href="ourservices">
<img src="Screen Shot 2016-05-03 at 5.12.26 PM.png" width="1200" height="1000"/>
</a>
</div>
</body>
</html>

最佳答案

div 或 p 元素中没有 align 属性。此代码是错误的:

<div align="center">

你可以使用

<div style="text-align:center">

让文字居中

关于html - 为什么此文本未与移动中心对齐?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38936085/

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