admin管理员组文章数量:1401659
I want to change color of dimmer of my modal, but I can't! what should I do?
<div class="ui modal">
<i class="close icon"></i>
<div class="header">
Profile Picture
</div>
<div class="content">
<p>sth</p>
</div>
<div class="actions">
<div class="ui black button">
Nope
</div>
<div class="ui positive right labeled icon button">
Yep, that's me
<i class="checkmark icon"></i>
</div>
</div>
</div>
In JS:
I tried for example following code, yet, no change!
$('.ui.modal').each(function() {
$(this).modal({allowMultiple: true}).modal('show').css('background-color', 'yellow');
});
I want to change color of dimmer of my modal, but I can't! what should I do?
<div class="ui modal">
<i class="close icon"></i>
<div class="header">
Profile Picture
</div>
<div class="content">
<p>sth</p>
</div>
<div class="actions">
<div class="ui black button">
Nope
</div>
<div class="ui positive right labeled icon button">
Yep, that's me
<i class="checkmark icon"></i>
</div>
</div>
</div>
In JS:
I tried for example following code, yet, no change!
$('.ui.modal').each(function() {
$(this).modal({allowMultiple: true}).modal('show').css('background-color', 'yellow');
});
Share
Improve this question
asked Apr 30, 2015 at 7:15
Alireza GhaffariAlireza Ghaffari
1,1145 gold badges16 silver badges31 bronze badges
1 Answer
Reset to default 5Use the background-color
property on element .dimmer
with an rgba
type css color value to introduce transparency.
.dimmer { background-color: rgba(250,250,50,0.8) }
To apply this CSS using jQuery, use the jQuery#css
method like so:
$(".dimmer").css("background-color","rgba(250,250,50,0.8)");
本文标签: javascriptSemanticUI How to change dimmer background colorStack Overflow
版权声明:本文标题:javascript - Semantic-UI: How to change dimmer background color? - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744286469a2598904.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论