<link rel="stylesheet" href="http://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css">
<link type="text/css" rel="stylesheet" href="css/bootoast.css">
<style type="text/css">
h3{color: #D5D6E2;}
</style> <div class="container">
<div class="row" style="padding: 2em 0;">
<h3>点击按钮查看Toast效果</h3>
<button id="info" class="btn btn-info">Info</button>
<button id="success" class="btn btn-success">Success</button>
<button id="warning" class="btn btn-warning">Warning</button>
<button id="danger" class="btn btn-danger">Danger</button>
</div>
</div> <script type="text/javascript" src="js/jquery.min.js"></script>
<script type="text/javascript" src="js/bootoast.js"></script>
<script type="text/javascript">
$( "#info" ).click(function() {
bootoast({
message: 'This is an info toast message',
position:'right-bottom',
timeout:2
});
});
$( "#success" ).click(function() {
bootoast({
message: 'This is a success toast message',
type: 'success',
position:'right-bottom',
timeout:2
});
});
$( "#warning" ).click(function() {
bootoast({
message: 'This is a warning toast message',
type: 'warning',
position:'right-bottom',
timeout:2
});
});
$( "#danger" ).click(function() {
bootoast({
message: 'This is a danger toast message',
type: 'danger',
position:'right-bottom',
timeout:2
});
});
</script>
*
回帖描述:*
链接类型:*
下载链接:*
描述:*
回帖描述:*
链接类型:*
阅读权限:*
下载链接:



聚优部落技术论坛 © 版权所有 鲁ICP备15007479号-6
Copyright(C)web.com, All Rights Reserved.
