V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
• 请不要在回答技术问题时复制粘贴 AI 生成的内容
JackyXiong
V2EX  ›  程序员

bootstrap3 输入框圆角问题

  •  
  •   JackyXiong ·
    JackyXiong · Jul 19, 2014 · 9890 views
    This topic created in 4310 days ago, the information mentioned may be changed or developed.
    在 bootstrap 2 里面表单实现圆角框只要 form 和 input 各自设置 class 就可以了,在 bootstrap 3 是不是实现不了,谷歌了好久都没找到答案。求高人指点。
    7 replies    2014-07-20 01:10:00 +08:00
    cmingxu
        1
    cmingxu  
       Jul 19, 2014
    class设置成form-control行么
    qiuai
        2
    qiuai  
    PRO
       Jul 19, 2014
    .form-control 有圆角啊
    JackyXiong
        3
    JackyXiong  
    OP
       Jul 19, 2014
    @qiuai 我想实现类似于 v2ex 搜索框这种大圆角
    qiuai
        4
    qiuai  
    PRO
       Jul 19, 2014
    @JackyXiong 那没有.你需要自己写一个元素给他.
    clijiac
        5
    clijiac  
       Jul 19, 2014
    3代都趋于扁平化的
    g0thic
        6
    g0thic  
       Jul 19, 2014
    form-control 自己改成自己需要的值
    Biwood
        7
    Biwood  
       Jul 20, 2014
    把border-radius的值设置为搜索框的高度值就行啦
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5620 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 50ms · UTC 09:00 · PVG 17:00 · LAX 02:00 · JFK 05:00
    ♥ Do have faith in what you're doing.