我网站的标签在 Firefox 上不显示

My website's label doesn't show on firefox

我正在处理的网站在 Chrome 上运行完美,但是当我在 Firefox 中打开它时,label 标签之间的文本没有显示。

谁能帮帮我?

编辑: 这是我的代码。

echo " <div class='row form-row' id='form-specialties'>
    <label for='specialties'>" . $_dic['#SPECIALTIES#'] . " </label>
    <input id='form-specialties' class='form-input' name='specialties'                value='$specialties'>
</div>";

这是 FireFox 上的代码:

<label for="specialties"> </label>

这是 Chrome 上的代码:

<label for="specialties">Especialidades </label>

我注意到您的标记中有重复的 ID (form-specialties)。在HTML中,一个ID必须是唯一的;它可能不会被多次使用。也许这会导致问题?

此外,查看您使用的 CSS 可能会有所帮助,也许问题出在这里。