Is there any way to have a fieldset width only be as wide as the controls in them?

前端 未结 12 1570
情深已故
情深已故 2020-12-08 05:53

It seems that fieldset defaults to 100% width of its container. Is there any way that you can have the field set just be as big as the widest control inside the fieldset?

12条回答
  •  我在风中等你
    2020-12-08 06:33

    i fixed my issue by override legend style as Below

    .ui-fieldset-legend
    {
      font-size: 1.2em;
      font-weight: bold;
      display: inline-block;
      width: auto;`enter code here`
    }
    

提交回复
热议问题