当前位置: 首页 > news >正文

前端页面一些小点

案例一:

<!DOCTYPE html>
<html lang="en">
<head><meta charset="UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><title>快递单号查询</title><style>body{display:grid;justify-content: center;gap:20px;}.nav{display:flex;  width:1400px;}.nav-left{display:flex;align-items: center;justify-content: center;margin-left: 10px;margin-right: 10px;font-size: 25px;}.nav-right{display: flex;border-bottom: 2px solid rgba(238, 238, 238, 0.944);width:1000px;margin-right: 10px;}.main{display:flex;height:450px;width:1400px;margin: auto;background-color: rgba(238, 238, 238, 0.944);}.footer{display:flex;width:1400px;margin: auto;background-color: rgba(174, 58, 108, 0.944);color:white;padding:10px 0px;justify-content: center;}input{background-color: rgba(238, 238, 238, 0.944);border:none;outline:none;display:inline-block;width:300px;height:60px;font-size: 20px;color:rgb(117, 116, 116)}</style>
</head>
<body><div class="nav"><img src="./left1.png"><span class="nav-left">快递运单号查询</span><img src="./left2.png"><div class="nav-right"></div></div><div class="main" ><img src="./1.png" style="width:70px;height:60px;"><input type="text" id="bills"></div><div class="footer"><span class="check" style="cursor:pointer;">立即查询</span></div>
</body><!-- <script src="https://cdn.jsdelivr.net/npm/axios/dist/axios.min.js"></script> -->
<script src="./jquery-3.7.1.js"></script><script>window.onload = ()=>{document.querySelector('.check').addEventListener('click',()=>{let bills = document.querySelector('#bills').value// console.log(bills)$.ajax({ type:'GET',url: 'http://smt56.kingtrans.cn/WebTrack',header:{'Access-Control-Allow-Origin':'127.0.0.1','Access-Control-Allow-Methods':'POST' },data: {//传递的参数// bills: billsaction:'list'},dataType: 'json',//必须写 定义的是jsonp请求方式jsonp: 'ks_trackform.bills',// 后端接收的函数名变量,如果是callback则可以省略,否则不可以省略jsonpCallback: 'callback',//前端定义接收函数名变量,省略后会默认生成一个函数jquery+数字success: function (res) {// location.href='http://smt56.kingtrans.cn/WebTrack?action=list&bills=MY82118314410'console.log(res)}})}) }</script>
</html>

1. 让输入框无边框 

outline:none;

border:none;

2. 光标变小手

cursor:pointer; 

http://www.lryc.cn/news/485556.html

相关文章:

  • Postman接口测试(断言、关联、参数化、输出测试报告)
  • redis和mongodb等对比分析
  • 如何在 WordPress 中轻松强制所有用户退出登录
  • 移除元素(leetcode 27)
  • html5表单属性的用法
  • 使用 Ant Design Vue 自定渲染函数customRender实现单元格合并功能rowSpan
  • 相机光学(四十四)——ALL-PD和PDAF
  • Opengl光照测试
  • OpenSIP2.4.11 向 FreeSWITCH 注册
  • 【C++】深入理解 C++ 优先级队列、容器适配器与 deque:实现与应用解析
  • Android 开发与救砖工具介绍
  • vue2和vue3:diff算法的区别?
  • 后端返回大数问题
  • vue3: ref, reactive, readonly, shallowReactive
  • 5G与4G互通的桥梁:N26接口
  • 29-Elasticsearch 集群监控
  • 利用Excel批量生成含二维码的设备管理标签卡片
  • 小米运动健康与华为运动健康在苹手机ios系统中无法识别蓝牙状态 (如何在ios系统中开启 蓝牙 相册 定位 通知 相机等功能权限,保你有用)
  • 高亮变色显示文本中的关键字
  • Javascript垃圾回收机制-运行机制(大厂内部培训版本)
  • 【jvm】一个空Object对象的占多大空间
  • 241114.学习日志——[CSDIY] [CS]数据结构与算法 [00]
  • The Planets: Earth -- 练习
  • linux逻辑卷练习
  • openai 论文Scaling Laws for Neural Language Models学习
  • __VUE_PROD_HYDRATION_MISMATCH_DETAILS__ is not explicitly defined
  • 基于PHP技术的校园站的设计与实现
  • JVM回收机制与算法
  • 24/11/14 算法笔记 GMM高斯混合模型
  • Linux下编译安装Nginx