其他分享
首页 > 其他分享> > a标签颜色跟随 父标签

a标签颜色跟随 父标签

作者:互联网

element.style {
    color: inherit;
}

之前:

<tr data-index="0" style="color: rgb(53, 149, 204);" class="">
    <td data-field="id" data-key="1-0-0" class="">
        <div class="layui-table-cell laytable-cell-1-0-0 laytable-cell-checkbox">
            <input type="checkbox" name="layTableCheckbox"lay-skin="primary">
            <div class="layui-unselect layui-form-checkbox" lay-skin="primary"><i class="layui-icon layui-icon-ok"></i>
            </div>
        </div>
    </td>
    <td data-field="title" data-key="1-0-1" data-content="报销审批" data-minwidth="200" class="">
        <div class="layui-table-cell laytable-cell-1-0-1"><a onclick="detail(`555`)" ">报销审批</a>
        </div>
    </td>
    <td data-field="readFlag" data-key="1-0-2" data-content="0" class="">
        <div class="layui-table-cell laytable-cell-1-0-2">未读</div>
    </td>
    <td data-field="createTime" data-key="1-0-3" data-minwidth="100" class="">
        <div class="layui-table-cell laytable-cell-1-0-3">2021-09-08 09:39:56</div>
    </td>
</tr>

在这里插入图片描述

之后:

<tr data-index="0" style="color: rgb(53, 149, 204);" class="">
    <td data-field="id" data-key="1-0-0" class="">
        <div class="layui-table-cell laytable-cell-1-0-0 laytable-cell-checkbox">
            <input type="checkbox" name="layTableCheckbox"lay-skin="primary">
            <div class="layui-unselect layui-form-checkbox" lay-skin="primary"><i class="layui-icon layui-icon-ok"></i>
            </div>
        </div>
    </td>
    <td data-field="title" data-key="1-0-1" data-content="报销审批" data-minwidth="200" class="">
        <div class="layui-table-cell laytable-cell-1-0-1"><a onclick="detail(`555`)" style="color: inherit;">报销审批</a>
        </div>
    </td>
    <td data-field="readFlag" data-key="1-0-2" data-content="0" class="">
        <div class="layui-table-cell laytable-cell-1-0-2">未读</div>
    </td>
    <td data-field="createTime" data-key="1-0-3" data-minwidth="100" class="">
        <div class="layui-table-cell laytable-cell-1-0-3">2021-09-08 09:39:56</div>
    </td>
</tr>

在这里插入图片描述

标签:39,56,颜色,未读,标签,08,09,跟随,2021
来源: https://blog.csdn.net/qq_33360016/article/details/120303908