<!-- IGNORE THE HTML BLOCK BELOW, THE INTERESTING PART IS AFTER IT -->
<h1 align="center">Popper.js</h1>
<p align="center">
<strong>A library used to position poppers in web applications.</strong>
</p>
<p align="center">
<img src="http://badge-size.now.sh/https://unpkg.com/popper.js/dist/popper.min.js?compression=brotli" alt="Stable Release Size"/>
<img src="http://badge-size.now.sh/https://unpkg.com/popper.js/dist/popper.min.js?compression=gzip" alt="Stable Release Size"/>
<a href="https://codeclimate.com/github/FezVrasta/popper.js/coverage"><img src="https://codeclimate.com/github/FezVrasta/popper.js/badges/coverage.svg" alt="Istanbul Code Coverage"/></a>
<a href="https://www.npmjs.com/browse/depended/popper.js"><img src="https://badgen.net/npm/dependents/popper.js" alt="Dependents packages" /></a>
<a href="https://spectrum.chat/popper-js" target="_blank"><img src="https://img.shields.io/badge/chat-on_spectrum-6833F9.svg?logo=data%3Aimage%2Fsvg%2Bxml%3Bbase64%2CPHN2ZyBpZD0iTGl2ZWxsb18xIiBkYXRhLW5hbWU9IkxpdmVsbG8gMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB2aWV3Qm94PSIwIDAgMTAgOCI%2BPGRlZnM%2BPHN0eWxlPi5jbHMtMXtmaWxsOiNmZmY7fTwvc3R5bGU%2BPC9kZWZzPjx0aXRsZT5zcGVjdHJ1bTwvdGl0bGU%2BPHBhdGggY2xhc3M9ImNscy0xIiBkPSJNNSwwQy40MiwwLDAsLjYzLDAsMy4zNGMwLDEuODQuMTksMi43MiwxLjc0LDMuMWgwVjcuNThhLjQ0LjQ0LDAsMCwwLC42OC4zNUw0LjM1LDYuNjlINWM0LjU4LDAsNS0uNjMsNS0zLjM1UzkuNTgsMCw1LDBaTTIuODMsNC4xOGEuNjMuNjMsMCwxLDEsLjY1LS42M0EuNjQuNjQsMCwwLDEsMi44Myw0LjE4Wk01LDQuMThhLjYzLjYzLDAsMSwxLC42NS0uNjNBLjY0LjY0LDAsMCwxLDUsNC4xOFptMi4xNywwYS42My42MywwLDEsMSwuNjUtLjYzQS42NC42NCwwLDAsMSw3LjE3LDQuMThaIi8%2BPC9zdmc%2B" alt="Get support or discuss"/></a>
<br />
<a href="https://travis-ci.org/FezVrasta/popper.js/branches" target="_blank"><img src="https://travis-ci.org/FezVrasta/popper.js.svg?branch=master" alt="Build Status"/></a>
<a href="https://saucelabs.com/u/popperjs" target="_blank"><img src="https://badges.herokuapp.com/browsers?labels=none&googlechrome=latest&firefox=latestµsoftedge=latest&iexplore=11,10&safari=latest" alt="SauceLabs Reports"/></a>
</p>
<img src="https://raw.githubusercontent.com/FezVrasta/popper.js/master/popperjs.png" align="right" width=250 />
<!-- ð¨ HEY! HERE BEGINS THE INTERESTING STUFF ð¨ -->
## Wut? Poppers?
A popper is an element on the screen which "pops out" from the natural flow of your application.
Common examples of poppers are tooltips, popovers and drop-downs.
## So, yet another tooltip library?
Well, basically, **no**.
Popper.js is a **positioning engine**, its purpose is to calculate the position of an element
to make it possible to position it near a given reference element.
The engine is completely modular and most of its features are implemented as **modifiers**
(similar to middlewares or plugins).
The whole code base is written in ES2015 and its features are automatically tested on real browsers thanks to [SauceLabs](https://saucelabs.com/) and [TravisCI](https://travis-ci.org/).
Popper.js has zero dependencies. No jQuery, no LoDash, nothing.
It's used by big companies like [Twitter in Bootstrap v4](https://getbootstrap.com/), [Microsoft in WebClipper](https://github.com/OneNoteDev/WebClipper) and [Atlassian in AtlasKit](https://aui-cdn.atlassian.com/atlaskit/registry/).
### Popper.js
This is the engine, the library that computes and, optionally, applies the styles to
the poppers.
Some of the key points are:
- Position elements keeping them in their original DOM context (doesn't mess with your DOM!);
- Allows to export the computed informations to integrate with React and other view libraries;
- Supports Shadow DOM elements;
- Completely customizable thanks to the modifiers based structure;
Visit our [project page](https://fezvrasta.github.io/popper.js) to see a lot of examples of what you can do with Popper.js!
Find [the documentation here](/docs/_includes/popper-documentation.md).
### Tooltip.js
Since lots of users just need a simple way to integrate powerful tooltips in their projects,
we created **Tooltip.js**.
It's a small library that makes it easy to automatically create tooltips using as engine Popper.js.
Its API is almost identical to the famous tooltip system of Bootstrap, in this way it will be
easy to integrate it in your projects.
The tooltips generated by Tooltip.js are accessible thanks to the `aria` tags.
Find [the documentation here](/docs/_includes/tooltip-documentation.md).
## Installation
Popper.js is available on the following package managers and CDNs:
| Source | |
|:-------|:---------------------------------------------------------------------------------|
| npm | `npm install popper.js --save` |
| yarn | `yarn add popper.js` |
| NuGet | `PM> Install-Package popper.js` |
| Bower | `bower install popper.js --save` |
| unpkg | [`https://unpkg.com/popper.js`](https://unpkg.com/popper.js) |
| cdnjs | [`https://cdnjs.com/libraries/popper.js`](https://cdnjs.com/libraries/popper.js) |
Tooltip.js as well:
| Source | |
|:-------|:---------------------------------------------------------------------------------|
| npm | `npm install tooltip.js --save` |
| yarn | `yarn add tooltip.js` |
| Bower* | `bower install tooltip.js=https://unpkg.com/tooltip.js --save` |
| unpkg | [`https://unpkg.com/tooltip.js`](https://unpkg.com/tooltip.js) |
| cdnjs | [`https://cdnjs.com/libraries/popper.js`](https://cdnjs.com/libraries/popper.js) |
\*: Bower isn't officially supported, it can be used to install Tooltip.js only trough the unpkg.com CDN. This method has the limitation of not being able to define a specific version of the library. Bower and Popper.js suggests to use npm or Yarn for your projects.
For more info, [read the related issue](https://github.com/FezVrasta/popper.js/issues/390).
### Dist targets
Popper.js is currently shipped with 3 targets in mind: UMD, ESM and ESNext.
- UMD - Universal Module Definition: AMD, RequireJS and globals;
- ESM - ES Modules: For webpack/Rollup or browser supporting the spec;
- ESNext: Available in `dist/`, can be used with webpack and `babel-preset-env`;
Make sure to use the right one for your needs. If you want to import it with a `<script>` tag, use UMD.
## Usage
Given an existing popper DOM node, ask Popper.js to position it near its button
```js
var reference = document.querySelector('.my-button');
var popper = document.querySelector('.my-popper');
var anotherPopper = new Popper(
reference,
popper,
{
// popper options here
}
);
```
### Callbacks
Popper.js supports two kinds of callbacks, the `onCreate` callback is called after
the popper has been initialized. The `onUpdate` one is called on any subsequent update.
```js
const reference = document.querySelector('.my-button');
const popper = document.querySelector('.my-popper');
new Popper(reference, popper, {
onCreate: (data) => {
// data is an object containing all the informations computed
// by Popper.js and used to style the popper and its arrow
// The complete description is available in Popper.js documentation
},
onUpdate: (data) => {
// same as `onCreate` but called on subsequent updates
}
});
```
### Writing your own modifiers
Popper.js is based on a "plugin-like" architecture, most of its features are fully encapsulated "modifiers".
A modifier is a function that is called each time Popper.js needs to compute the position of the popper. For this rea
没有合适的资源?快使用搜索试试~ 我知道了~
温馨提示
本网站使用的是.net Webform框架开发,主要功能是记录一些笔记使用,比如设备的维修笔记等等。数据库使用的是 sqlserver 2008 . 花费了很多业余时间做的。写的代码也比较乱,技术有限,代码比较直观,或者说就是简单粗暴。 不过既然做出了大部分的功能,还是分享出来。或许谁有兴趣,可以看看参考改进。也算没有白做,有点价值。谢谢 如有问题可以留言。同时希望.net 越来越好。软件开发也需要人性化,简单的技术应该得到尊重和应有的价值。
资源推荐
资源详情
资源评论
收起资源包目录
webform笔记网站源码及说明.rar (1614个子文件)
de-de.xml.2005-03-22.10-39-30.0156 4KB
10184088203342310640 44KB
1914E000 2.07MB
20170404134845425 86KB
20170404135357329 39KB
20170404135900587 100KB
20170404140512496 54KB
20170404140908036 94KB
20170404141246448 32KB
20170404144653111 14KB
20170404150021899 5KB
20170404153459142 75KB
20170404174926766 32KB
20170404175051797 27KB
20180817131129875 130KB
20180817131218828 89KB
3_lijie45655 9KB
Languages.xml.2005-03-17.21-30-04.5156 815B
Languages.xml.2005-03-22.10-39-19.7187 1KB
apiaccept 20KB
Global.asax 4KB
UserMessage.ascx 14KB
menu.ascx 5KB
LoadingControl.ascx 5KB
副本 menu.ascx 3KB
navigate.ascx 2KB
NewsCategory.ascx 1KB
bottom.ascx 1KB
GuangGao.ascx 633B
Guanggao2.ascx 611B
webupload.ashx 21KB
CheckCode.ashx 5KB
MergeFiles.ashx 4KB
upload.ashx 3KB
ChangeCaName.ashx 1KB
Zeri2.aspx 77KB
Default.aspx 65KB
bz_free.aspx 55KB
bz.aspx 53KB
addnews.aspx 30KB
IndexmORE.aspx 28KB
UserMessage.aspx 27KB
UserMessage2.aspx 25KB
RegisterUP.aspx 17KB
Register.aspx 16KB
Select_Master.aspx 15KB
login.aspx 11KB
user_My.aspx 10KB
CourseStudy.aspx 9KB
SelectCompany.aspx 8KB
newsContent.aspx 7KB
Master_Register.aspx 7KB
Pay_master.aspx 7KB
21studentsPay.aspx 7KB
backService.aspx 6KB
Default.aspx 6KB
BZPP.aspx 5KB
return_url2.aspx 5KB
imagery.aspx 5KB
notify_url.aspx 5KB
副本 bz.aspx 4KB
Login.aspx 4KB
11notPayorder.aspx 3KB
t.aspx 3KB
12OktPayorder.aspx 3KB
21studentsPT.aspx 3KB
newsmanager.aspx 3KB
payto.aspx 3KB
Test.aspx 3KB
categorymanager.aspx 3KB
List.aspx 3KB
加盟.aspx 3KB
ftb.imagegallery.aspx 2KB
Index.aspx 2KB
Zeri.aspx 2KB
Defaultp.aspx 2KB
SearchRes.aspx 1KB
ShowNews.aspx 1KB
副本 null.aspx 1KB
bofang3.aspx 1KB
副本 Pay_master.aspx 845B
ShowImage.aspx 689B
bofang.aspx 566B
Default2.aspx 432B
webup.aspx 104B
auto_dup 69B
jQuery1.2API(黑色版).chm 170KB
Web.Config 4KB
packages.config 530B
Default.aspx.cs 54KB
addnews.aspx.cs 52KB
Zeri2.aspx.cs 50KB
BZ1.cs 45KB
BLL.cs 36KB
BLL_ZhouYiBZ.cs 34KB
login.aspx.cs 31KB
webup.aspx.cs 31KB
bz_free.aspx.cs 24KB
bz.aspx.cs 24KB
UserMessage.aspx.cs 24KB
共 1614 条
- 1
- 2
- 3
- 4
- 5
- 6
- 17
资源评论
jjb_chain_boy
- 粉丝: 2
- 资源: 11
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- C语言-leetcode题解之28-implement-strstr.c
- C语言-leetcode题解之27-remove-element.c
- C语言-leetcode题解之26-remove-duplicates-from-sorted-array.c
- C语言-leetcode题解之24-swap-nodes-in-pairs.c
- C语言-leetcode题解之22-generate-parentheses.c
- C语言-leetcode题解之21-merge-two-sorted-lists.c
- java-leetcode题解之Online Stock Span.java
- java-leetcode题解之Online Majority Element In Subarray.java
- java-leetcode题解之Odd Even Jump.java
- 计算机毕业设计:python+爬虫+cnki网站爬
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功