Mobile side Some common default style issues

Source: Internet
Author: User

1.ios button Gray, add style to the button:

-webkit-appearance:none;

2. Rounded Corners

button{border-radius:0;}

3. Remove Chrome and other browser text box default Glow border

Input:focus, Textarea:focus {outline:none;}

4. Remove the Highlight style:

input:focus{-webkit-tap-highlight-color:rgba (0,0,0,0);-webkit-user-modify:read-write-plaintext-only;}

5. The borders of the text boxes under all browsers will not change in color or style, but we can set them again according to our own needs.

input:focus,textarea:focus {outline:none; border:1px solid #f60;}

6. Remove the small fork behind the ie10+ browser text box

input::-ms-clear {display:none;}

7. No textarea drag-and-drop amplification

textarea {Resize:none;}

Here to mention a property resize, this is the CSS3 property, for element scaling, it can take the following values: None default value both allow horizontal and vertical scaling horizontal only allow horizontal zoom vertical only allow vertical direction scaling Not only for the TEXTAREA element, for most elements are applicable, such as Div, and so on, not listed here, but unlike textarea, the DIV needs to add a sentence overflow:auto, that is, the effect: div {Resize:both ; Overflow:auto;}

Mobile side Some common default style issues

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.