使用JQ实现点击其他区域关闭窗口的功能
<div class="fc">
<div class="fc_box">
<div class="fc_c">
<p class="fc_t ovf"><span>预约挂号</span><span>只显示可预约</span></p>
<div class="fc_b">
<div><span >解放军总医院</span><span>皮肤科</span><img src="images/shou.png" alt=""></div>
<ul class="fc_b1">
<li>
<p>4月24号(周三)上午</p>
<p class="kyy">可预约</p>
</li>
<li>
<p>4月24号(周三)下午</p>
<p class="ym">约满</p>
</li>
<li>
<p>4月25号(周四)上午</p>
<p class="kyy">可预约</p>
</li>
</ul>
<div><span>泰安市中医医院 </span><span>皮肤科</span><img src="images/shou.png" alt=""></div>
<ul class="fc_b2">
<li>
<p>4月27号(周六)上午</p>
<p class="ym">约满</p>
</li>
<li>
<p>4月27号(周六)下午</p>
<p class="ym">约满</p>
</li>
</ul>
</div>
</div>
</div>
</div>
<div class="foot">
<div class="foot_b main ovf">
<div><img src="images/gz.png" alt=""><p>关注</p></div>
<div>
<p class="yy">预约</p>
<p class="zx"><a href="chat.html">咨询</a></p>
</div>
</div>
</div>
.fc{ position: fixed; width: 100%; height: 100%; top: 0; bottom:0; left: 0; right:0; background: rgba(17, 17, 17, 0.35); z-index: 1000; display: none; max-width: 640px; }
.fc_box { width: 100%; height: 62%; z-index: 100; max-width: 640px; position: fixed; padding: 0.6rem 0.5rem 0 0.6rem; bottom: 0; animation: myfirst 0.5s; background: #ffffff; -webkit-animation: myfirst 0.5s; }
@keyframes myfirst { from { height: 0; } to { height: 62%; } }
.h { transition: height 1s linear; animation: mytwo 1s !important; -webkit-animation: mytwo 1s !important; -webkit-transition: height 1s linear; -moz-transition: height 1s linear; -ms-transition: height 1s linear; -o-transition: height 1s linear; }
@keyframes mytwo { from { height: 62%; } to { height: 0; } }
.fc_t span:nth-child(1){ color: #101010; font-size: 0.7rem; }
更多内容请见原文,原文转载自:https://blog.csdn.net/weixin_44519496/article/details/120074305
分类:
前端
标签:
javascript
, 前端
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· DeepSeek 开源周回顾「GitHub 热点速览」
· 物流快递公司核心技术能力-地址解析分单基础技术分享
· .NET 10首个预览版发布:重大改进与新特性概览!
· AI与.NET技术实操系列(二):开始使用ML.NET
· 单线程的Redis速度为什么快?