开发者

Smartgwt font size in text input using css

开发者 https://www.devze.com 2023-04-13 08:07 出处:网络
When I put this in my css file: label, input { font-size: 18px; } Text labels show up with font size 18, but text boxes aren\'t affected.

When I put this in my css file:

label, input
{
  font-size: 18px;
}

Text labels show up with font size 18, but text boxes aren't affected. Also, when looking at the generated html code in the browser (Inspect element, using Chrome), I'm seeing that the input box has a set height.

So the question is开发者_运维百科, can I control the size of the text box and the size of the font inside the text box using just css?


If you add the !important declaration your css would take precedence on the smartgwt css declaration. I've just tried and it works.


    label, input {
        font-size: 18px !important;
    }

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号