Common CSS Settings

Source: Internet
Author: User

Clear floating

. Clearfix:before,. Clearfix:after {
Content: "";
display:table;
}

. clearfix:after {
Clear:both;
}

. clearfix {
Zoom:1;
}

The rest of the ellipses indicate

span{
Display:block;
Width:150/@px2rem;
Overflow:hidden;
White-space:nowrap;
Text-overflow:ellipsis;
}

Specify a few lines to display
Overflow:hidden;
Text-overflow:ellipsis;
Display:-webkit-box;
-webkit-box-orient:vertical;
-webkit-line-clamp:2;

Long Press to copy effect
-webkit-user-select:text!important;

Remove the fillet of input submit from Safari
-webkit-appearance:none;
border-radius:0;

Prohibit copy and paste on mobile phone side

*{
-webkit-touch-callout:none; /* System default menu is disabled */
-webkit-user-select:none; /*webkit Browser */
-khtml-user-select:none; /* Early Browser */
-moz-user-select:none;/* Firefox */
-ms-user-select:none; /*ie10*/
User-select:none;
}


There will be a problem with IOS, this time you will find that the input box is not entering the content
Input {
-webkit-user-select:auto; /*webkit Browser */
}


PS Save Slice shortcut key Ctrl+alt+shift+s

Center Display image

img{
Display:block;
margin:0 Auto;
}

Common CSS Settings

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.