Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/79.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/css/32.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Html 通知栏的数据解除和关闭按钮_Html_Css - Fatal编程技术网

Html 通知栏的数据解除和关闭按钮

Html 通知栏的数据解除和关闭按钮,html,css,Html,Css,我有一个通知栏在我的网站顶部(在我有一个模态之前)。 是否可以单击X(关闭按钮)并删除通知栏?我试过了,但没用。如何在我上一次工作“结束”之后直接使用与文本相同的背景色来获取X按钮? 我使用Bootstrap-3 HTML 我在这儿闲逛 您可以通过jQuery实现这一点 <script> $(document).ready(function() { $(".dismisbar").click(function(){ $(".notification-bar")

我有一个通知栏在我的网站顶部(在我有一个模态之前)。 是否可以单击X(关闭按钮)并删除通知栏?我试过了,但没用。如何在我上一次工作“结束”之后直接使用与文本相同的背景色来获取X按钮? 我使用Bootstrap-3

HTML


我在这儿闲逛

您可以通过jQuery实现这一点

<script>
$(document).ready(function() {
    $(".dismisbar").click(function(){
        $(".notification-bar").hide();
    }); 
});
</script>

$(文档).ready(函数(){
$(“.dismisbar”)。单击(函数(){
$(“.notification bar”).hide();
}); 
});

您可以通过jQuery实现这一点

<script>
$(document).ready(function() {
    $(".dismisbar").click(function(){
        $(".notification-bar").hide();
    }); 
});
</script>

$(文档).ready(函数(){
$(“.dismisbar”)。单击(函数(){
$(“.notification bar”).hide();
}); 
});

<script>
$(document).ready(function() {
    $(".dismisbar").click(function(){
        $(".notification-bar").hide();
    }); 
});
</script>