从php文件编辑特定样式表

时间:2016-12-07 07:05:43

标签: php css

编辑:
我想要做的是将css代码添加到我现有的css文件中。我不知道" c" fopen的模式是好的,我不知道我是否需要添加或删除任何其他内容,但我已经读过" c"只需将代码添加到文件的开头,而不删除其中的所有内容。

$handle = fopen("mt_custom_services.css", "r");  
    .mt--custom_services:hover {  
    background-color: '.esc_attr($custom_service_background).' !important;  
    }  
    .mt--custom_services .hover_container .hover_container_holder .custom_service_second_title {  
    color: '.esc_attr($custom_service_title_color).';  
    }  
    .mt--custom_services .hover_container .hover_container_holder .custom_service_description {  
    color: '.esc_attr($custom_service_description_color).';   
    }  
    .mt--custom_services .hover_container .more-link {  
    color: '.esc_attr($custom_service_button_color).';    
    }  
    .mt--custom_services .hover_container {  
    background-color: rgba(35, 35, 49, 0.7);  
    }  

0 个答案:

没有答案