Ajax-updateprogress: Set the position of the CSS element to center the animation & Loading info

Source: Internet
Author: User

Info for http://www.ajaxload.info/loading
Http://www.bigik.cn/blog/article.asp? Id = 182

If you know about the popular Ajax, you must have seen a small animation similar to loading:

Below are several websites dedicated to providing this type of GIF animation, which may be used one day.

Http://www.ajaxload.info/
This website can instantly generate a loading Animation Based on your input conditions! And the style is my favorite: P

Http://mentalized.net/activity-indicators/

Http://www.napyfab.com/ajax-indicators/

The Atlas Control <Atlas: updateprogress is used on the page to display a waiting icon during various operations to relieve user boredom, so that they will not be so upset during the long waiting for the results, knowing that the system is busy.

Shape:

<Asp: updateprogress id = "updateprogress1" runat = "server">

<Progresstemplate>

</Progresstemplate>

</ASP: updateprogress>

However, if you write the icon in this way, it will be on one side and inconspicuous. If you write an absolute position, for example

Style = "position: absolute; left: 400px; top: 300px;", but this is only suitable for 800*600 screens, and the screen resolution varies widely.

The percentage can be used, as shown in the following code:

<Asp: updateprogress id = "updateprogress1" runat = "server">

<Progresstemplate>

</Progresstemplate>

</ASP: updateprogress>

 

In this way, the icon will reside on the page in any case.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.