Styling Twitter Bootstrap Modal Close Icon

人走茶凉 提交于 2019-12-07 02:32:51

问题


I'm trying to do some styling on Twitter Bootstrap modal close icon. This is the CSS I'm using:

.modal-header .close {
    float: right !important;
    margin-right: -30px !important;
    margin-top: -30px !important;
    background-color: white !important;
    border-radius: 15px !important;
    width: 30px !important;
    height: 30px !important;
    opacity: 1 !important;
}

It works pretty good on Chrome / IE, however sometimes on Firefox I get strange behavior (image is attached). Is there additional CSS rule that I have to supply to have this work on Firefox as well?


回答1:


Depending on the version of firefox you may need to add -moz-border-radius: 15px




回答2:


This proved to be an issue with graphic card(s) on several laptop(s) that were using Intel graphics. Funny thing is that only Firefox was susceptible to this problem.



来源:https://stackoverflow.com/questions/18556772/styling-twitter-bootstrap-modal-close-icon

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!