A tutorial on how to remove the white background and borders of the input input box on the HTML5 page end of the mobile end

Source: Internet
Author: User

The first two days in the development of micro-letter access to the HTML5 page, which has an order query to select the time, just start using the <input type= "date" > Input box, without any style, the effect is a white background plus the ugly border, completely with the entire background is not coordinated.

Just started setting the input box background color transparent (background-color:transparent;), the background color and the border is not on the iOS, but in the andriod top border and background color still exists. Later, with the style Filter:alpha (opacity=0), the border and background are removed from the andriod.

Removing the background and border is much better than it used to be, but because the type is date, there is an icon on the right, it feels uncoordinated, plus appearance:none; the style icon is gone, better than before. The following illustration is an effect:

JSP Part code:

<div>  
             
            <i Nput type= "Date" name= "Querydate" id= "querydate" value= "" onchange= "changedate ();" />  
             "class=" Imgcen "onclick=" updateDate (1); " Style= "Margin-left: -8px;" /> 
        </div>

Input box Style code:

. Date Input[type=date] {
Background-color:transparent;
Color: #fff;
Filter:alpha (opacity=0);/*androd*/
Appearance:none; /* Dropdown box to remove the right icon * *
-moz-appearance:none;
-webkit-appearance:none;
}

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.