我的占位符沒有顯示在我的文本輸入中,有人可以幫助我嗎?我正在使用本機反應
<TextInput
style={{
height: "15%",
margin: 12,
border: 1,
borderColor: "white",
borderStyle: "solid",
placeholder: "this is a test",
padding: 10,
borderRadius: 20,
width: "70%",
backgroundColor: "#E5E5E5"
}}
></TextInput>;
uj5u.com熱心網友回復:
直接使用 placeholder 屬性,不通過 css 樣式 <TextInput ..... placeholder="your text">
請參閱本機檔案:https : //reactnative.dev/docs/textinput
轉載請註明出處,本文鏈接:https://www.uj5u.com/qukuanlian/386194.html
標籤:javascript 反应 本国的 占位符 文本输入
