Html/css Common Collection

Source: Internet
Author: User

1, eliminate the inline-block between the elements of the line gap problem:
{font-size:0;}
Ie6/7 Browser-compatible method:letter-spacing property. 2. Align the top of the div with two inline-block:Two elements should be added vertical-align:top;

3. The Vertical-align percent value is relative to the Line-height value inherited by this tag. For example:

. test{vertical-align:-10%;}
Assuming that the tag of the . Test here inherits a row height of 20px, the vertical-align:-10% actual value represented here is: -10% * 20 = 2(像素) .

4. Modify placeholder Color:

::-webkit-input-placeholder {  color:red;}:-moz-placeholder {/** *   color:red;}::-moz-placeholder{/** * / color:red;}:- ms-input-placeholder {  color:red;}

5, text multi-line ellipsis wording:

{    -webkit-box;     Overflow:hidden;    Text-overflow:ellipsis;     -webkit-line-clamp:2;     -webkit-box-orient:vertical;     -webkit-box-Pack:center;}

6. input Remove the original style with a picture instead of time, you need to note that iOS will have a black background, otherwise there may be black edge, set background-color:white.

 

Html/css Common Collection

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.