将样式声明放在body标签内是否合法?放置它的另一种方法是,如果需要,是否有任何理由不将其放置在body标签内?
之前:
<html>
<head>
<style>
#Ellipse_1{stroke:rgb(0,0,0);stroke-width:8px;}
</style>
</head>
<body>
<svg style="position:absolute;width:121px;height:121px;">
<ellipse id="Ellipse_1" rx="60.5" ry="60.5" cx="147.5" cy="164.5">
</svg>
</body>
</html>
之后:
<html>
<head>
</head>
<body>
<style>
#Ellipse_1{stroke:rgb(0,0,0);stroke-width:8px;}
</style>
<svg style="position:absolute;width:121px;height:121px;">
<ellipse id="Ellipse_1" rx="60.5" ry="60.5" cx="147.5" cy="164.5">
</svg>
</body>
</html>