css in my JavaScript widget colliding with target page css

后端 未结 3 846
忘掉有多难
忘掉有多难 2020-12-22 07:16

I\'ve written a pretty basic widget for voting, users install it pretty much like the Google analytics code by simply adding a JavaScript code to the bottom of their code.

3条回答
  •  一生所求
    2020-12-22 07:43

    Use !important for the css of your widget.

    Example:

    .widget {
        font: 16px Arial !important;
    }
    

提交回复
热议问题