Solve the problem of the calendarextender control being blocked, and add a white background to avoid the influence of multiple layers.

Source: Internet
Author: User
Solve the problem that the calendarextender control is blocked, and add a white background to avoid the influence of multiple layers. Put the control directly into the DIV and add the Z-index, but it is invalid. Find this article Article Solve the problem: http://blog.csdn.net/atian15/archive/2009/06/01/4231090.aspxASP.NET Ajax calendarextender control is covered by other Div problem 1. Problem description: In the use of ASP. net Ajax calendar control, some of the control may be covered by other Div containers. Theoretically, you can set the Z-index attribute of the div, but the key is how to set the Z-index of the calendar control to the top level. 2. Solution: Find Source code You can find the style sheet named "calendar.css". the first row of the style sheet represents the style of the entire calendar control container, Code As follows :. ajax _ calendar_container {padding: 4px; position: absolute; cursor: default; width: 170px; font-size: 11px; text-align: center; font-family: tahoma, verdana, Helvetica;} we only need to rewrite this line of style rules on the page to achieve the effect .. Mycalendar. Ajax _ calendar_container {z-index: 1000;} and then set cssclass = "mycalendar" in the control .. ====== Next, set. mycalendar. ajax _ calendar_container {z-index: 1000;} changed :. mycalendar. ajax _ calendar_container {z-index: 3000; Background-color: White;} solves the multi-layer visual impact. Http://four-corner.appspot.com

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.