Give me better idea to do Marquee tag in asp.net page

不羁岁月 提交于 2019-12-11 07:53:52

问题


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


回答1:


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:

  • jQuery news ticker
  • jQuery liScroll


来源:https://stackoverflow.com/questions/2821131/give-me-better-idea-to-do-marquee-tag-in-asp-net-page

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!