我是SCSS的新手。我試圖將我的佔位符文本從淺灰色轉換爲深灰色。 附件是html代碼:無法在Scss中設置佔位符文本的樣式
<div class="form-group">
<textarea class="thread-textarea" ng-maxlength="255" maxlength="255" ng-model="newMessage.Content" ng-keyup="keycount($event)"placeholder="If this is an emergency, call 911. Otherwise, type your message here. We try to respond within 24 hours."title="Type your message" spellcheck="true" aria-labelledby="typeYourMessage"></textarea>
<span class="aria-hidden" id="typeYourMessage">Type your message</span>
</div>
附件是我的相關SCSS代碼。
$darkgrey: #333333;
textarea{
@include placeholder
{
color: $darkgrey;
}
}
我想將佔位符的顏色從灰色改爲深灰色。任何幫助將不勝感激。
您使用的是波旁威士忌嗎? –
這不是您選擇輸入佔位符的方式。看到這裏:http://stackoverflow.com/questions/2610497/change-an-inputs-html5-placeholder-color-with-css – Turnip
@Turnip與波旁威士忌它會這樣工作:http://bourbon.io/docs /#placeholder我的猜測是波旁沒有正確設置。 –