好得很程序员自学网

<tfoot draggable='sEl'></tfoot>

css27】base标签带有href属性会让chrome里的svg元素url失效_html/css_

一个chrome的问题,但具体原因不明。

触发条件: chrome浏览器base标签里href属性有值的时候

触发问题: svg里面的元素如果有用url的滤镜和模糊,则会失效,在firefox里和IE10没有发现这个问题。

正常状态:

有base标签且href里值为“.”的时候chrome里的状态:

测试代码:

     chrome bug  #svg{ width:500px; height:500px; display:block; margin:20px auto; background-color:#000; }     -->   	 		 		    		    		 		 			 		 	 		 	     

具体原因不明,希望有大神赐教。

查看更多关于css27】base标签带有href属性会让chrome里的svg元素url失效_html/css_的详细内容...

  阅读:33次