给我更好的主意在 asp.net 页面中做 Marquee 标签

发布于 2024-09-01 11:32:31 字数 419 浏览 1 评论 0原文

下面的代码可以工作,但我不知道它的编写方式是否?

<td align="center" style=" height:50px; width:100%;  background-color:Red;width:10%;">

<div id="divremview" >

<marquee behavior="scroll" direction="up">

<div id="div1"><asp:Label ID="Label1" runat="server" Text="Label">Hi</asp:Label></div>

</marquee>

</div>    </td>

而且它也没有居中对齐。像往常一样,它左对齐

The bellow code working, but i don’t know it the write way or not?

<td align="center" style=" height:50px; width:100%;  background-color:Red;width:10%;">

<div id="divremview" >

<marquee behavior="scroll" direction="up">

<div id="div1"><asp:Label ID="Label1" runat="server" Text="Label">Hi</asp:Label></div>

</marquee>

</div>    </td>

Also it not in center alignment. As usual it in left alignment

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

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

发布评论

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

评论(1

爱人如己 2024-09-08 11:32:31

marquee 控件是仅适用于 IE 的控件,很久以前就已被弃用。
我建议您查看其他标准替代品,例如 jQuery 插件。

示例:

The marquee control is a IE only control and has been deprecated long time ago.
I suggest you to look at other standard alternatives like a jQuery plug-in.

Examples:

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文