画图
body, div, svg {
margin: 0;
padding: 0;
}
svg * {
fill: none;
stroke: currentColor;
overflow: hidden;
}
/* Custom 线条粗细 */
.obturateur {
stroke-width: 18;
stroke-miterlimit: 10;
color: #499C6A;
}
#ams {
background-image: linear-gradient(90deg, #75BB8F 0%, #52B477 67%);
overflow: hidden;
}
width="100%" height="100%" viewBox="0 0 1900 990">
var x = $(document).width();
var y = $(document).height();
$("#ams").attr('viewBox','0 0,'+x+','+y)
请问一下,svg,我想全屏显示,兼容1366768以及19201080的分辨率,需要怎么设置svg的宽和高,以及 viewBox的值,另外,svg的线条宽stroke-width对全屏幕显示有什么影响?