<!-- 返回顶部 --> <div class="flex align-items-center justify-content-center goTop">回顶部</div> $(window).scroll(function () { /* 判断滚动条 距离页面顶部的距离 100可以自定义*/ …
不多说了,看代码 <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>ajax对接</title> </head> <body> <h1…
1、通过npm安装jQuery组件: npm i jquery --save 2、在 build/webpack.base.conf.js 里加入: const webpack = require("webpack") module.exports = { // 其他代码... resolve: { extensions: …
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>jQuery工具</title> </head> <body> <input typ…
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>jQuery动画参数</title> <style> progress{ …
jQuery布局 <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>jQuery布局</title> <style> div { …
html <ul> <li>HTML</li> <li>CSS</li> <li>JS</li> </ul> <ol> <li>第1项</li> <li>第2项&…
CSS .red-text{ color:red; } .bold-text{ font-weight: bold; font-size: 2rem; } HTML <ul></ul> <ul> <li>第1项</li> <li>第2项&…
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> …
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> …
jQuery DOM <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1…