私はバッグのイメージを持っているページを持っています。私はsvgオーバーレイを置いたバッグイメージの上に、問題はイメージに上書きされておらず、応答していません。イメージとスケール上のSvg
の作業例: https://jsbin.com/lilaxizizo/1/edit
コード:
<!DOCTYPE html>
<html>
<head>
<title>SVG </title>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script>
<!-- Latest compiled and minified CSS -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
<!-- Optional theme -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap-theme.min.css" integrity="sha384-rHyoN1iRsVXV4nD0JutlnGaslCJuC7uwjduW9SVrLvRYooPp2bWYgmgJQIXwl/Sp" crossorigin="anonymous">
<!-- Latest compiled and minified JavaScript -->
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous"></script>
</head>
<body>
<div class="container">
<div id="wrapper">
<img class="img-responsive" src="duffell_bag.jpg" alt="Planets" usemap="#bag">
<svg style="position:absolute;z-index:10" height="300" width="500">
<polygon points="103,79,119,74,136,68,173,67,202,70,262,78,316,89,380,97,393,121,402,157,407,184,418,216,424,249,419,261,404,274,359,288,332,294,271,284,195,266,142,255,83,238,59,223,64,177" style="fill-opacity:0.1;fill:lime;stroke:purple;stroke-width:1" />
Sorry, your browser does not support inline SVG.
</svg>
</div>
</div>
</body>
</html>
サイズを変更しようとすると、応答しない、とあなたが与えるソリューションは非常にバグがあり、あなたは、ウィンドウのサイズを変更する続ければ、 – Pedro
安定していない私は単純にスケーリング」でGoogle検索をしましたSVG 'であり、viewBoxに言及する無数のリソース(ほとんどが既にstackoverflowにあります)がありました。 Stackoverflowは、あなたが本当に立ち往生しているときに支援を提供する場所です。将来は研究してください。 –