多语言展示
当前在线:864今日阅读:197今日分享:19

弹出消息提示jQuery插件

弹出消息提示jQuery插件
工具/原料

adobe dreamweaver

方法/步骤
2

准备好需要用到的字体图标。

3

书写hmtl代码。

插件特点:

  • 三个显示位置: right, center or left.
  • 六种情景模式: success, info, warning, danger, light, dark.

示例:

4

书写css代码。/* Space out content a bit */body { padding-top: 20px; padding-bottom: 20px; }/* Everything but the jumbotron gets side spacing for mobile first views */.header, .footer { padding-right: 15px; padding-left: 15px; }/* Custom page header */.header { padding-bottom: 20px; border-bottom: 1px solid #e5e5e5; }/* Make the masthead heading the same height as the navigation */.header h3 { margin-top: 0; margin-bottom: 0; line-height: 40px; }.content { padding: 40px 0; }/* Custom page footer */.footer { padding-top: 19px; color: #777; border-top: 1px solid #e5e5e5; }/* Customize container */@media (min-width: 768px) {.container { max-width: 730px; }}.container-narrow > hr { margin: 30px 0; }/* Main marketing message and sign up button */.jumbotron { text-align: center; border-bottom: 1px solid #e5e5e5; }.jumbotron .btn { padding: 14px 24px; font-size: 21px; }/* Responsive: Portrait tablets and up */@media screen and (min-width: 768px) {/* Remove the padding we set earlier */.header,  .footer { padding-right: 0; padding-left: 0; }/* Space out the masthead */.header { margin-bottom: 30px; }/* Remove the bottom border on the jumbotron for visual effect */.jumbotron { border-bottom: 0; }}

5

书写并添加js代码。

6

代码整体结构。

7

查看效果。

推荐信息