首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >ActionScript 2、htmlText、img标签和中心标签

ActionScript 2、htmlText、img标签和中心标签
EN

Stack Overflow用户
提问于 2012-04-04 14:29:31
回答 1查看 998关注 0票数 0

我正在尝试将图像输出到闪存ActionScript 2动态文本框中。这是通过将<img ... />放入htmlText-code中实现的。但是我不能在带有<center>...</center>标签的行上居中显示图像。

有没有人能帮我完成以下工作:

文本文本

代码语言:javascript
复制
          IMG

文本文本

在ActionScript 2的htmlText字段中。

EN

回答 1

Stack Overflow用户

发布于 2012-04-20 17:28:28

使用div和id包装器尝试这段代码

代码语言:javascript
复制
<?xml version="1.0" encoding="utf-8"?>
<about title="Blog">
<title>
    <![CDATA[]]>
</title>
<thumb></thumb>
<text>
<div id="wrapper" style="width: 500px;">
<p>04/19-2012 - Test with images...</p>
<p>This image is not centered, as it should be...</p>
<p>
    <center>
        <img src="/uploads/dmbtest.gif" alt="" width="210" height="100" />
    </center>
</p>
<p>This is text after the image, which should be placed just below the image and not next to it :(</p>
<p>##################################################</p>
</div>
</text><optionalText><![CDATA[]]></optionalText></about>

它工作正常

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/10005964

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档