我真的很難找到這個邊框顏色的定義位置。我檢查了 dom,但在任何輸入組件或其偽元素中都看不到邊框樣式...
我只是想減輕輸入邊框的顏色以匹配我的主題禁用顏色。
這是我使用的代碼和渲染。
<OutlinedInput
size='small'
disabled={disabled}
value={value}
endAdornment={<InputAdornment position="end">{ctx.user.currency.short}</InputAdornment>}
inputProps={{ style: { paddingBottom: 4, } }}
style={{ fontWeight: 700, fontSize: 18 }}
{...props}
/>
我試過使用<TextField />,但它有同樣的問題。請問你能幫幫我嗎 ?

uj5u.com熱心網友回復:
添加到您的 css 檔案中:
.MuiOutlinedInput-notchedOutline {
border-color: red !important;
border-width: 4px !important;
}
這是輸出:

轉載請註明出處,本文鏈接:https://www.uj5u.com/qiye/449289.html
標籤:javascript css 反应 材料-ui 禁用输入
上一篇:如何設定段落的字數限制?
下一篇:PHP表格無法設定樣式
