2016-11-08 72 views

回答

0

我不是100%確定blogger dynamic view template是什麼,但是如果您可以編寫自定義CSS3 + HTML標記,則以下代碼應該足夠了。

截圖第一: spinning image with clickable parts

它所做的基本上是旋轉圖像無限的時間,同時使圖像可點擊的每一個圓圈圖標。 :

<html> 
<head> 
    <style type="text/css"> 
     @keyframes myfirst 
     { 
      from {transform: rotate(0deg);} 
      to {transform: rotate(360deg);} 
     } 

     img { 
      animation-name: myfirst; 
      animation-duration: 5s; 
      animation-timing-function: linear; 
      animation-delay: 0s; 
      animation-iteration-count: infinite; 
      animation-direction: normal; 
      animation-play-state: running; 
     } 
    </style> 

</head> 
<body> 
    <img src="pic.png" usemap ="#planetmap"/> 
    <map name="planetmap"> 
     <area shape="circle" coords="67,95,40" href="example.com"/> 
     <area shape="circle" coords="177,60,40" href="example.com"/> 
     <area shape="circle" coords="244,150,40" href="example.com"/> 
     <area shape="circle" coords="69,211,40" href="example.com"/> 
     <area shape="circle" coords="180,247,40" href="example.com"/> 
    </map> 
</body> 
</html> 

特別提示:請到MDN兼容性信息,如CSS3還沒有穩定下來。