【问题标题】:<a> inside <button> color text is not right Semantic UI<a> <button> 内的彩色文本不正确语义 UI
【发布时间】:2015-11-28 15:42:23
【问题描述】:

我有这个代码:

<button class="ui right floated small primary labeled icon button">
    <i class="user icon"></i>
    <a href="<?php echo base_url() ?>index.php/c_contact/add_contact">Add Contact</a>
</button>

下图显示primary类没有对锚标签内的文本生效。我浏览了文档并且没有将文本更改为白色锚按钮的课程。

语义 UI 处理锚按钮的任何方式,还是我必须使用自定义 CSS 解决这个问题?

【问题讨论】:

  • 这绝对是你必须添加一些自定义 css 的东西。 button a { color:white; }
  • 将此功能添加到框架中会很好,因为 php 开发人员经常使用锚标记。 Bootstrap 框架具有“锚按钮”功能。
  • 我同意...但是现在,您需要自己实现它:/

标签: php button anchor semantic-ui


【解决方案1】:

把你的代码改成这个

<a href="<?php echo base_url() ?>index.php/c_contact/add_contact">
    <button class="ui right floated small primary labeled icon button">
        <i class="user icon"></i>
        Add Contact
    </button>
</a>

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2017-11-10
    • 2021-03-31
    • 2017-06-03
    • 2017-03-05
    • 2021-07-21
    • 2018-06-10
    相关资源
    最近更新 更多