V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
Can I use?
http://caniuse.com/
Less
http://lesscss.org
Cool Libraries
Bootstrap from Twitter
Jetstrap
initialdp
V2EX  ›  CSS

请教问题:关于自定义 button

  •  
  •   initialdp · 2020-06-05 12:17:30 +08:00 · 1444 次点击
    这是一个创建于 1393 天前的主题,其中的信息可能已经有所发展或是发生改变。
    公司管理系统的 UI 采用了 bootstrap,使用了很多按钮,类似这样的:
    <button type='button' class='btn btn-danger'>Delete</button>

    想请教的是:可不可以在 css 中定义一个 btn-del,将上述描述全部包含进去,以达到简化的目的? 例如:
    <btn-del></btn-del>

    谢谢。
    1 条回复    2020-07-23 20:59:46 +08:00
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   5306 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 09:07 · PVG 17:07 · LAX 02:07 · JFK 05:07
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.