[javascript svg fill stroke stroke-width x1 y1 x2 y2 line stroke-opacity fill-opacity properties explained] svg fill stroke stroke-width s Troke-opacity fill-opacity line drawing lines Properties explained

Source: Internet
Author: User
Tags x2 y2

1<! DOCTYPE html>234<title>insert you title</title>5<meta name= ' description ' content= ' This is my page ' >6<meta name= ' keywords ' content= ' keyword1,keyword2,keyword3 ' >7<meta http-equiv= "content-type" content= "text/html; Charset=utf-8 ">8<link rel= ' stylesheet ' type= ' text/css ' href= './css/index.css '/>9<script type= ' text/javascript ' src= './js/jquery-1.12.1.min.js ' ></script>Ten<style type= ' text/css ' > one Html,body,div,svg { amargin:0; padding:0; - } -  the #wrap { -width:500px; height:450px; BORDER:1PX Solid #999; border-radius:2px; margin:25px auto; - } -  + svg { -height:100%; width:100%; +     /*in Google chrome, if you do not specify the size of svg, use the default 300*150 size (you can check the focus on the label in the console {Element}), but the performance is different in Firefox a even if we do not specify the size of the SVG and specify the size of the parent element, the size of the SVG inherits the parent element; at      */ - } -</style> -<script type= ' Text/javascript ' > -$(function(){ -  in     } ); -</script> to +<body> -<div id= ' wrap ' > the<svg xmlns= ' http://www.w3.org/2000/svg ' version= ' 1.1 ' > *<line x1= ' 195 ' y1= ', ' x2= ' the y2= ' 310 ' fill= ' #09F3C7 ' stroke= ' #C7F309 ' $Stroke-width= ' 3 ' stroke-opacity = '. 3 ' fill-opacity = '. 9 'Panax Notoginseng></line> <!--parameter resolution x1 y1 x2 y2 starting point coordinates if you want to set to transparent (none/Transparent) Although none is the same as the transparent effect but the mechanism is completely different none is not populated transparent -Is transparent, outlines the stroke as no style = "fill: #09F3C7; stroke: #C7F309;" stroke-opacity = '. 3 ' fill-opacity = '. 9 '-- the</svg> +</div> a</body> the

[javascript svg fill stroke stroke-width x1 y1 x2 y2 line stroke-opacity fill-opacity properties explained] svg fill stroke stroke-width s Troke-opacity fill-opacity line drawing lines Properties explained

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.