1. 程式人生 > >bootstrap-js-訊息彈出框

bootstrap-js-訊息彈出框

1.

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
    <link rel="stylesheet" href="css/bootstrap.css">
    <script src="js/jquery.1.12.4.min.js"
>
</script> <script src="js/bootstrap.js"></script> <script src="js/docs.min.js"></script><!-- 實現出現工具提示 和佔位圖片--> <title>Bootstrap</title> </head> <style type="text/css"> *{ font-family: 微軟雅黑; } </style> <body>
<div class="container"> <div class="page-header"></div> <a tabindex="0" class="btn btn-lg btn-danger bs-docs-popover" role="button" data-toggle="popover" data-trigger="focus" title="" data-content="And here's some amazing content. It's very engaging. Right?"
data-original-title="Dismissible popover">
可消失的彈出框</a> </div> </body> </html>

這裡寫圖片描述

2.

< button type="button" class="btn btn-lg btn-danger bs-docs-popover" 
data-toggle="popover" title="" data-content=
"And here's some amazing content. It's very engaging. Right?" 
data-original-title="Popover title">點我彈出/隱藏彈出框</button>

這裡寫圖片描述