<script type="text/javascript" src="js/snap.svg-min.js"></script>
<style type="text/css">
.shape-svg{border: 2px solid #aad; }
</style>
</head>
<body>
<script type="text/javascript">
var svg1 = Snap(400, 400).attr({
class: "shape-svg"
});
var svg2 = Snap(400, 400).attr({
"class": "shape-svg"
})
</script>
</body>
没有出现border