Home  >  Article  >  Web Front-end  >  Detailed explanation of layui radio button not displaying properly and solution

Detailed explanation of layui radio button not displaying properly and solution

coldplay.xixi
coldplay.xixiforward
2020-06-12 17:47:184852browse

Detailed explanation of layui radio button not displaying properly and solution

layui radio button cannot be displayed normally and the solution

When we develop using layui, sometimes Encountered a situation where the radio button cannot be displayed normally

For example:

Detailed explanation of layui radio button not displaying properly and solution

Normal situation

Detailed explanation of layui radio button not displaying properly and solution

I'm not sure about the specific reason

But the solution is to add the following code to the js initialized by layui

form.render();

As shown:

Detailed explanation of layui radio button not displaying properly and solution

Recommended tutorial: "layui framework tutorial"

The above is the detailed content of Detailed explanation of layui radio button not displaying properly and solution. For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:liqingbo.cn. If there is any infringement, please contact admin@php.cn delete
Previous article:Layui related form methodNext article:Layui related form method