使用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>424号(周三)上午</p>
                    <p class="kyy">可预约</p>
                  </li>
                  <li>
                    <p>424号(周三)下午</p>
                    <p class="ym">约满</p>
                  </li>
                  <li>
                    <p>425号(周四)上午</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>427号(周六)上午</p>
                    <p class="ym">约满</p>
                  </li>
                  <li>
                    <p>427号(周六)下午</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; }

更多请见:http://www.mark-to-win.com/tutorial/50934.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值