我在我的網站上使用Raphael.js。請在標題中看看徽標。 http://hooche.ru/md2 代碼標誌:如何到<href..>我的svg-logo和Raphael?
<script type="text/javascript">
window.onload = function() {
var r = Raphael(logo); r.attr({href: "http://google.com/", target: "blank"});
other vector..
...
</script>
和標誌^
<div id="logo"></div>
但現在的HTML代碼,我們有:1個字母= 1個谷歌鏈接=非常多谷歌的鏈接和空,不可點擊空格在一個svg標誌周圍的字母。
怎麼做:1 SVG-標誌= 1個鏈接到某個地方,沒有空的空間, 例如,DIV標誌有:
width: 190px;
height: 67px;
)))但現在鏈接不工作..我不明白 – flenj