我有一個情況下,應根據數據庫中的數據更改以下兩個值。 在一個外部的css文件中,我有這個。獲取外部CSS文件中的變量
#wow-container1 {
zoom: 1;
position: relative;
width: 100%;
max-width:960px;
max-height:360px;
margin:0px auto 0px;
z-index:90;
border:2px solid #FFFFFF;
text-align:left;
font-size: 10px;
}
我的要求是我需要改變最大高度:最大寬度:當存儲在數據庫中的高度和寬度是changed.Is有任何可能的解決方案?
您可以重新配置您的php.ini文件以允許PHP將它解釋爲您的CSS文檔(允許PHP在非.php文件中)。那,或者你可以使用LESS或SASS。你的來電。 –
你可以使用javscript或jquery輕鬆完成。 –
您可以使用JavaScript並完全忽略文件中的CSS。 –