本文介绍了更改单选按钮和组合框的样式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想给我的单选按钮和组合框一些样式.
所以,我该怎么做才能使它们看起来有吸引力..............:confused :: confused :: confused :: confused:

I want to give some style to my radio button and combo box.
So what should I do to make them look attractive ..............:confused::confused::confused::confused:

推荐答案



body {
    font: 0.8em/21px arial,sans-serif;
}
.checkbox, .radio {
    width: 19px;
    height: 25px;
    padding: 0 5px 0 0;
    background: url(checkbox.gif) no-repeat;
    display: block;
    clear: left;
    float: left;
}
.radio {
    background: url(radio.gif) no-repeat;
}
.select {
    position: absolute;
    width: 158px; /* With the padding included, the width is 190 pixels: the actual width of the image. */
    height: 21px;
    padding: 0 24px 0 8px;
    color: #fff;
    font: 12px/21px arial,sans-serif;
    background: url(select.gif) no-repeat;
    overflow: hidden;
}


这篇关于更改单选按钮和组合框的样式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-23 16:48
查看更多