Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to use the vendor prefix CSS attribute

2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/01 Report--

This article mainly introduces how to use the supplier prefix CSS attribute, the article is very detailed, has a certain reference value, interested friends must read it!

By default, placeholder text for fields and is displayed in light gray, and there is no standard CSS property to style them. However, browsers provide some non-standard vendor-specific pseudo elements and classes that can be used to customize the appearance of placeholder text, as shown in the following example:

Try this code for example »

Styling Placeholder Text with CSS

::-webkit-input-placeholder {

Color: orange

}

:-moz-placeholder {/ * Upto Firefox 18, Deprecated in Firefox 19 * /

Color: orange

}

::-moz-placeholder {/ * Firefox 19 + * /

Color: orange

}

:-ms-input-placeholder {

Color: orange

}

The above is all the content of the article "how to use the supplier prefix CSS attribute". Thank you for reading! Hope to share the content to help you, more related knowledge, welcome to follow the industry information channel!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report