文章詳情頁(yè)
css3 - css如何改變button中的文字?
瀏覽:209日期:2023-07-17 18:00:01
問(wèn)題描述

逼不得已,使用css方法如何解決,請(qǐng)教大家。
問(wèn)題解答
回答1:只能幫到這里了:
button:after { content: 'Hellow'; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: white;}回答2:
不能,CSS能改變的的只有::before和::after偽元素中的內(nèi)容。
你可以嘗試用偽元素覆蓋在原本的元素上。
回答3:css不能改變里面的文字,你為什么不用js或者jquery來(lái)實(shí)現(xiàn)了?
標(biāo)簽:
CSS
上一條:css - float元素不能對(duì)齊,使用clearboth或者overflowhidden后又會(huì)在頂部出現(xiàn)一像素的空行下一條:css - 為什么border-radius的圓角會(huì)消失?
相關(guān)文章:
1. boot2docker無(wú)法啟動(dòng)2. 關(guān)docker hub上有些鏡像的tag被標(biāo)記““This image has vulnerabilities””3. docker-compose中volumes的問(wèn)題4. javascript - mock.js可以存儲(chǔ)數(shù)據(jù)嗎5. nignx - docker內(nèi)nginx 80端口被占用6. java - SSH框架中寫(xiě)分頁(yè)時(shí)service層中不能注入分頁(yè)類(lèi)7. docker安裝后出現(xiàn)Cannot connect to the Docker daemon.8. dockerfile - 為什么docker容器啟動(dòng)不了?9. golang - 用IDE看docker源碼時(shí)的小問(wèn)題10. docker api 開(kāi)發(fā)的端口怎么獲取?
排行榜

熱門(mén)標(biāo)簽
網(wǎng)公網(wǎng)安備