gpt4 book ai didi

dart - 更改核心工具提示的默认背景颜色

转载 作者:行者123 更新时间:2023-12-03 04:06:05 24 4
gpt4 key购买 nike

我有以下.html代码

<core-tooltip tipAttribute='tipp'
id='clock-icon-tip'
style='background-color: blue;'>
<div tipp
style='background-color: red; width: 100%; height: 100%;'>
<p>this is my tool<br> tip</p>

</div>
<core-icon id='clock-icon' class='margin-l-b-4px' icon=''></core-icon>
</core-tooltip>

显示如下

如何使黑色背景色变为红色。
谢谢

最佳答案

我将内联样式移到了样式标签,因为我认为这是应该做的。
我删除了tipAttribute,因为它对我不起作用(可能是https://github.com/Polymer/core-tooltip/issues/26,该问题最近已修复)。

<template>
<style>
core-tooltip#clock-icon-tip core-icon {
background-color: blue;
}

/* tooltip content */
core-tooltip#clock-icon-tip > [tip],
/* tooltip background */
core-tooltip#clock-icon-tip::shadow .core-tooltip {
background-color: red;
/*width: 100%;
height: 100%;*/
}

/* tooltip arrow
(needs a rule for each tooltip position, this is for bottom only */
core-tooltip#clock-icon-tip::shadow .core-tooltip.bottom::after {
border-bottom-color: red;
}

</style>

<core-tooltip
id='clock-icon-tip'
>
<div tip>
<p>this is my tool<br> tip</p>

</div>
<core-icon id='clock-icon' class='margin-l-b-4px' icon=''></core-icon>
</core-tooltip>
</template>

关于dart - 更改核心工具提示的默认背景颜色,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28182632/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com