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 implement button style in C #

2025-02-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

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

Editor to share with you how to achieve button style in C#, I believe most people do not know much about it, so share this article for your reference, I hope you can learn a lot after reading this article, let's go to know it!

.btn {BORDER-RIGHT: # 7b9ebd1px solid; PADDING-RIGHT: 2pxten Borderr-TOP:#7b9ebd 1px solid; PADDING-LEFT: 2px; FONT-SIZE: 12px; FILTER:progid:DXImageTransform.Microsoft.Gradient (GradientType=0,StartColorStr=#ffffff, EndColorStr=#cecfde); BORDER-LEFT: # 7b9ebd1px solid; CURSOR: hand; COLOR: black; PADDING-TOP: 2pxTERM bot: # 7b9ebd1px solid} .btn1 _ mouseout {BORDER-RIGHT: # 7EBF4F 1px solid; PADDING-RIGHT: 2pxten Bordert-TOP:#7EBF4F 1px solid; PADDING-LEFT: 2px FONT-SIZE: 12px; FILTER:progid:DXImageTransform.Microsoft.Gradient (GradientType=0,StartColorStr=#ffffff, EndColorStr=#B3D997); BORDER-LEFT: # 7EBF4F1px solid; CURSOR: hand; COLOR: black; PADDING-TOP: 2pxTERM: # 7EBF4F1px solid} .btn1 _ mouseover {BORDER-RIGHT: # 7EBF4F1px solid; PADDING-RIGHT: 2pxash border-TOP:#7EBF4F 1px solid; PADDING-LEFT: 2px; FONT-SIZE: 12px; FILTER:progid:DXImageTransform.Microsoft.Gradient (GradientType=0,StartColorStr=#ffffff, EndColorStr=#CAE4B6); BORDER-LEFT: # 7EBF4F1px solid CURSOR: hand; COLOR: black; PADDING-TOP: 2pxbot: # 7EBF4F 1px solid} .btn2 {padding: 2404fontmuri sizelevue 12pxscape; BORDER-LEFT: # 2C59AA1px solid; BORDER-LEFT: # 2C59AA1px solid; BORDER-LEFT: # 2C59AA1px solid CURSOR: hand; COLOR: black; PADDING-TOP: 2pxShiBorder: # 2C59AA1px solid} .btn3 _ mouseover {BORDER-RIGHT: # 2C59AA1px solid; PADDING-RIGHT: 2pxTERB-TOP:#2C59AA 1px solid; PADDING-LEFT: 2px; FONT-SIZE: 12px; FILTER:progid:DXImageTransform.Microsoft.Gradient (GradientType=0,StartColorStr=#ffffff, EndColorStr=#D7E7FA); BORDER-LEFT: # 2C59AA1px solid; CURSOR: hand; COLOR: black; PADDING-TOP: 2px BORDER-BOTTOM: # 2C59AA 1px solid} .btn3 _ mousedown {BORDER-RIGHT: # FFE4001px solid; PADDING-RIGHT: 2pxash Borderr-TOP:#FFE400 1px solid; PADDING-LEFT: 2px; FONT-SIZE: 12px; FILTER:progid:DXImageTransform.Microsoft.Gradient (GradientType=0,StartColorStr=#ffffff, EndColorStr=#C3DAF5); BORDER-LEFT: # FFE4001px solid; CURSOR: hand; COLOR: black; PADDING-TOP: 2pxpolitic bot: # FFE4001px solid} .btn3 _ mouseup {BORDER-RIGHT: # 2C59AA 1px solid; PADDING-RIGHT: 2px BORDER-TOP:#2C59AA 1px solid; PADDING-LEFT: 2px; FONT-SIZE: 12px; FILTER:progid:DXImageTransform.Microsoft.Gradient (GradientType=0,StartColorStr=#ffffff, EndColorStr=#C3DAF5); BORDER-LEFT: # 2C59AA1px solid; CURSOR: hand; COLOR: black; PADDING-TOP: 2pxpolitical BORDERMUTOM: # 2C59AA1px solid} .btn _ 2k3 {BORDER-RIGHT: # 002D96 1px solid; PADDING-RIGHT: 2pxash border-TOP:#002D96 1px solid; PADDING-LEFT: 2px; FONT-SIZE: 12px FILTER:progid:DXImageTransform.Microsoft.Gradient (GradientType=0,StartColorStr=#FFFFFF, EndColorStr=#9DBCEA); BORDER-LEFT: # 002D961px solid; CURSOR: hand; COLOR: black; PADDING-TOP: 2pxscape: # 002D961px solid} .test {width:200px;}

Class= "btn test" > Button style (btn)

Class= "btn1_mouseout test" > Button style (btn1_mouseout)

Class= "btn1_mouseover test" > Button style (btn1_mouseover)

Class= "btn2 test" > Button style (btn2)

Class= "btn3_mouseout test" > Button style (btn3_mouseout)

Class= "btn3_mouseover test" > Button style (btn3_mouseover)

Class= "btn3_mousedown test" > Button style (btn3_mousedown)

Class= "btn3_mouseup test" > Button style (btn3_mouseup)

Class= "btn_2k3 test" > Button style (btn_2k3)

Class= "btn3_mouseout test"

Onmouseover= "this.className='btn3_mouseover test'"

Onmouseout= "this.className='btn3_mouseout test'"

Onmousedown= "this.className='btn3_mousedown test'" >

Button full-featured style

This problem is particularly prominent in the process of dealing with form elements, and what many people can't do is the problem of unifying button performance standards. But in order to highlight the personality, people like to make the interface very interesting. Very attractive, the above are a variety of C # button styles provided to you in this article. I hope you can achieve a unified standard and show your personality.

The above is all the content of the article "how to implement button style in C #". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more 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