我已经使用 Photoshop 进行了切片,并在 HTML 中设置了背景,并且想要在切片上输入一些文本作为文本,我该怎么做?

发布于 2024-10-01 18:04:24 字数 172 浏览 3 评论 0原文

我已经对图像进行了切片,制作了带有表格的 HTML 文件。我用标签将其居中,然后放置重复的背景图像,我希望它重复。现在我想在我指定用于放置文本的字段上放置一些文本。(我想将文本放置在表格格式的图像上)我不知道如何在该文本字段上放置文本(表格)与图像。由于我是该技术的新手,请尽可能详细地回答。

感谢您的阅读和回复。

I have sliced an image making an HTML file with tables. I centered it with tag and then I put the background image which repeats which I want it to repeat. and now I want to put some text on the field which I had specified for putting text.( I want to put text on an image which is there in table format) I don't know how to put text on that text field(table)with image. Please answer in detail as much as possible as I am new to the technology.

Thanks for reading and replying.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

小兔几 2024-10-08 18:04:24

您是否希望将文本嵌入到图像中或将其保留为可以选择和蜘蛛抓取的 html 文本?

如果是后者,我总是导出切片图像和 html,然后在 Dreamweaver 中打开它。然后,转到我希望显示文本的部分,并将占据该空间的图像设置为该表格单元格的背景图像(some text< ;/td>)。然后,您可以将任何您喜欢的内容放入单元格中,例如文本。您只需记住在切片图像时要填充空间的文本的大小和数量,因为任何占用比您允许的空间更多的空间的内容都会将切片分开。

希望有帮助。

Are you looking to have your text be embedded in the image or keep it as html text that can be selected and spidered?

If it's the latter, I've always exported my sliced up image and html then opened it up in dreamweaver. I then go to the section I want text to appear and I set the image occupying the space as the background image for that table cell (<td background="/path/to/myslice_1.jpg">some text</td>). You can then put whatever you like inside the cell such as text. You just have to keep in mind the size and amount of text you want to fill the space as your slicing up the image, because anything that takes up more space than you've allowed will break your slices apart.

Hope that helps.

南渊 2024-10-08 18:04:24

您可能想向表格单元格添加一些样式,因为 html 与 css 配合得很好。
正如上面提到的WuLongTi,你可以写:

<td>text</td>

然后在上面使用css选项'style':

<td style ="background: red;">text</td>

然后代替'red'设置图像路径:

<td style="background-image: url("/path/to/myslice.jpg");">text</td>

You might want to add some STYLE to your table cell(s), because html works with css just fine.
AsWuLongTi mentioned above, you can write:

<td>text</td>

and then use css option 'style' on it:

<td style ="background: red;">text</td>

then in place of 'red' set path to your image:

<td style="background-image: url("/path/to/myslice.jpg");">text</td>
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文