前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >使用JQ实现点击其他区域关闭窗口的功能

使用JQ实现点击其他区域关闭窗口的功能

作者头像
马克社区
发布2022-07-18 17:11:58
4120
发布2022-07-18 17:11:58
举报
文章被收录于专栏:高端IT高端IT
代码语言:javascript
复制
<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>
代码语言:javascript
复制
.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

本文系转载,前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文系转载前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档