AngularJs IE Compatibility 兼容老版本IE(2)

<!DOCTYPE html> <html xmlns:ng="needed for ng: namespace"> <head> <title>IE Compatbility</title> <!--[if lte IE 8]> <script> // needed to make ng-include parse properly document.createElement('ng-include'); // needed to enable CSS reference document.createElement('ng:view');//注释掉也可以?! </script> <![endif]--> <style> ng\:view { display: block; border: 1px solid red; width:100px; height:100px; } ng-include { display: block; border: 1px solid blue; width:100px; height:100px; } </style> </head> <body> <ng:view></ng:view> <ng-include></ng-include> </body> </html>

您可能感兴趣的文章:

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:https://www.heiqu.com/wzfdwd.html