0

当我在这个小提琴上选择投票按钮时:http: //jsfiddle.net/3Uz7S/4/

投票图像在 firefox/chrome 上更新为椭圆形。

如何更新css,以便在选择“投票”时按钮保持其矩形形状,或者这是否可能?

小提琴代码:

<script type="text/javascript" charset="utf-8" src="http://static.polldaddy.com/p/6343621.js"></script>

.pds-vote-button {
    border-radius:0 !important;     
    -webkit-border-radius:0 !important; 
}

.pds-box {    
border-radius:0 !important;     
-webkit-border-radius:0 !important; 
}
4

3 回答 3

1

It changes the class on the click to pds-vote-button-load

jsFiddle: http://jsfiddle.net/3Uz7S/5/

.pds-vote-button-load
{
    border-radius:0 !important;     
    -webkit-border-radius:0 !important; 
}
于 2012-07-19T20:14:58.673 回答
1

将此添加到您的 CSS

.pds-vote-button-load
{
    border-radius: 0 !important;     
    -webkit-border-radius: 0 !important;
    -moz-border-radius: 0 !important; 
}
于 2012-07-19T20:20:12.303 回答
0

apply CSS styles also to class "pds-vote-button-load" and add -moz-border-radius as well

.pds-vote-button, .pds-vote-button-load {
    border-radius: 0 !important;
    -moz-border-radius: 0 !important;
    -webkit-border-radius: 0 !important; 
}
于 2012-07-19T20:13:55.317 回答