推荐学习书目
Learn Python the Hard Way
Python Sites
PyPI - Python Package Index
http://diveintopython.org/toc/index.html
Pocoo
值得关注的项目
PyPy
Celery
Jinja2
Read the Docs
gevent
pyenv
virtualenv
Stackless Python
Beautiful Soup
结巴中文分词
Green Unicorn
Sentry
Shovel
Pyflakes
pytest
Python 编程
pep8 Checker
Styles
PEP 8
Google Python Style Guide
Code Style from The Hitchhiker's Guide
bb2018
V2EX  ›  Python

http://f2e.im 首页那个 创建新主题 的按钮是用什么做的? 不是 js .没找到代码 是 css 能实现这个功能吗?

  •  
  •   bb2018 · Aug 26, 2017 · 2628 views
    This topic created in 3184 days ago, the information mentioned may be changed or developed.
    http://f2e.im 首页那个 创建新主题 的按钮是用什么做的? 不是 js .没找到代码
    是 css 能实现这个功能吗?
    <div class="dropdown fr open">

    点一下按钮 <div class="dropdown fr open"> 与 <div class="dropdown fr"> 之间变化。
    来打开菜单与关闭菜单。
    知道他是用前端代码实现的。但是不知道是哪些代码实现的?
    哪位朋友有空去 f2e.im 首页看看代码是哪几句实现的?多谢了。
    4 replies    2017-08-27 20:11:37 +08:00
    xiaome
        1
    xiaome  
       Aug 26, 2017   ❤️ 1
    autoxbc
        2
    autoxbc  
       Aug 26, 2017
    在顶层元素上做事件委托,按钮上就看不到绑定的回调
    bb2018
        3
    bb2018  
    OP
       Aug 27, 2017
    已解决。谢谢。
    6v9RiVwXi6gzU8x8
        4
    6v9RiVwXi6gzU8x8  
       Aug 27, 2017 via Android
    连 https 都没有,垃圾!切到 https 跑到 paosuan.com
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3003 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 36ms · UTC 02:06 · PVG 10:06 · LAX 19:06 · JFK 22:06
    ♥ Do have faith in what you're doing.