您的位置:首页 > Web前端 > CSS

QPushButton样式表顺序问题

2016-06-16 16:00 471 查看
QPushButton {
background-color:transparent;
background-image: url(:/img/close_normal.png);
}
QPushButton:hover{
background-color:transparent;
background-image: url(:/img/close_hover.png);
}
QPushButton:pressed{
background-color:transparent;
background-image: url(:/img/close_press.png);
}


样式顺序为normal、hover、pressed,如果将pressed放在hover前面,样式不能正常显示。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: