试图将文本与SNES游戏的风格对齐

问题描述 投票:-1回答:1

让我们做一个长话短说。

我想要这个文字......

enter image description here

看起来更像这样......

enter image description here

我的意思是当我输入时它的对齐方式。在我的布局中,第一行较长,第二行较短。那些点那里看起来很丑陋。

我正在使用的网站对其代码的工作方式非常有限,这有点糟糕。但到目前为止这是我的代码。

<div style="width:100%;height:550px;background:url(https://www.vizzed.com/smd/photo_album_pics/fullsize/35979-1555716669.gif) no-repeat;background-size:100% 100%;">
  <div style="width:67%;height:25%;background-color:transparent;position:relative;left:135px;position:relative;top: 365px;border-style:hidden;overflow: auto;border-width:0px;padding: 5px">
    <p style="font-size: 26pt;font-family: Arial Black;font-weight: bold;text-align: center;word-spacing: 10px;letter-spacing;6px;color: black; -webkit-text-fill-color: white; -webkit-text-stroke-width: 2.3px; -webkit-text-stroke-color: black; }">
  </div>
</div>
html css
1个回答
0
投票

我不确定我是否完全理解你的问题,但如果你只是想控制在哪里剪切句子,你可以使用<br>标签。

© www.soinside.com 2019 - 2024. All rights reserved.