Is it possible to set fill and stroke colors and opacity on VML paths using CSS?

前端 未结 3 1182
日久生厌
日久生厌 2021-01-06 00:23

For example, I\'d like to do something like the following:

.myRedPath {
    fillcolor: red;
}

...


         


        
3条回答
  •  不思量自难忘°
    2021-01-06 00:33

    VML uses attributes instead of CSS properties, so the only way to reference them in a style sheet is to add another behavior URL which references a htc which sets attribute values. Otherwise, use a HTML element to wrap the VML element and add the background color to it:

    
    
      
        
        Lightbox Simple
        
      
      
        

    hey

    X you hi

提交回复
热议问题