我有一個問題與::選擇後,我的繼承人代碼::專注::選擇發行後
HTML:
...
<div class="post">
<form>
<textarea placeholder="Message Here..." maxlength="255"></textarea>
</form>
</div>
...
CSS:
.wrapper .left_section .profile_small .post form textarea:focus::after {
content:"<input type='submit' value='Post' />";
}
所以當文區域被選中(焦點)我想提交按鈕出現。 有誰知道解決方案?
在此先感謝。
這可能有助於:http://stackoverflow.com/questions/2587669/css-after-pseudo-element-on-input-field 不幸的是,我認爲':before'和':after' pseudoelements don' t工作在輸入或textareas – Haroldchen
@Haroldchen - 絕對正確,它將需要被包裝在說,'div' – SW4
加,你不能使用僞元素來生成全新的HTML元素。因爲它們是*僞元素。您的需求最好由腳本來完成。 – BoltClock