Skip to content

Commit

Permalink
Update 4.5 页面设计.md
Browse files Browse the repository at this point in the history
将book中与footer.ejs中对应的代码修改为一致。
  • Loading branch information
chen tuo authored Jun 2, 2017
1 parent 53cc0de commit 4756e77
Showing 1 changed file with 19 additions and 8 deletions.
27 changes: 19 additions & 8 deletions book/4.5 页面设计.md
Original file line number Diff line number Diff line change
Expand Up @@ -158,14 +158,25 @@ a:hover {

```
<script type="text/javascript">
// 点击按钮弹出下拉框
$('.ui.dropdown').dropdown();
// 鼠标悬浮在头像上,弹出气泡提示框
$('.post-content .avatar-link').popup({
inline: true,
position: 'bottom right',
lastResort: 'bottom right',
});
  /* 使通知框延时自动从页面删除 */
  $(document).ready( function () {
// 延时清除掉成功、失败提示信息
if ($('.ui.success.message').length > 0) {
$('.ui.success.message').fadeOut(1000)
} else if ($('.ui.error.message').length > 0) {
$('.ui.error.message').fadeOut(1000)
}
// 点击按钮弹出下拉框
$('.ui.dropdown').dropdown();
// 鼠标悬浮在头像上,弹出气泡提示框
$('.post-content .avatar-link').popup({
inline: true,
position: 'bottom right',
lastResort: 'bottom right'
});
})
</script>
</body>
</html>
Expand Down

0 comments on commit 4756e77

Please sign in to comment.