简体   繁体   English

如何 styles 复选框,单选按钮,javascript 下拉列表?

[英]How to styles checkbox, radio button, dropdownlist by javascript?

I want styles my checkbox, dropdownlist follow my style example: transparent background, change color border, change stick sign, change arrow dropdown... How can i style these controls by javascript?我想要 styles 我的复选框,下拉列表遵循我的样式示例:透明背景,更改颜色边框,更改棒标志,更改箭头下拉...我如何通过 javascript 设置这些控件的样式? please give me some advices, solutions or sources to solve it.请给我一些建议,解决方案或资源来解决它。 thanks in advance.提前致谢。

You can do this by applying external skins to your controls.您可以通过将外部皮肤应用到您的控件来做到这一点。

Skinnable Form Controls lets you do this. Skinnable Form Controls让您可以做到这一点。

Use CSS.使用 CSS。

http://reference.sitepoint.com/css http://reference.sitepoint.com/css

You can use jQuery to manipulate the CSS properties of DOM elements on the client side:您可以使用 jQuery 在客户端操作 DOM 元素的 CSS 属性:

http://api.jquery.com/css/ http://api.jquery.com/css/

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何使用单选和复选框按钮来验证JavaScript验证? - How to validate a javascript validation with radio and checkbox button? Javascript +单选按钮/复选框验证 - Javascript + Radio Button / CheckBox Validation 如何使用javascript启用带有复选框的所有单选按钮? - How to enable all the radio button with a checkbox by using javascript? 如何将复选框和单选按钮与按钮链接以在JavaScript中打开页面? - How to link checkbox and radio with button to open page in JavaScript? 如何使用JavaScript自动计算单选按钮和复选框值 - How to automatically compute Radio button and Checkbox values using javascript JavaScript:如何将单选按钮和复选框的总和输入框(初学者) - JavaScript: How to get sum of radio button and checkbox into a input box(Beginner) 如何在选中单选按钮时取消选中复选框,以及在使用Javascript选中复选框时如何取消选中单选按钮 - How to uncheck checkbox when radio button is checked and uncheck radio button when checkboxes are checked using Javascript 如何连接复选框和单选按钮 - How Connect Checkbox and radio button 使用javascript将复选框转换为单选按钮? - convert Checkbox into radio button using javascript? JavaScript / jQuery - 使用复选框更改单选按钮 - JavaScript / jQuery - Change radio button with Checkbox
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM