SVG ပန်းပုံခွဲ အခွင့်အရေး

SVG ပန်းပုံခွဲ အခွင့်အရေး

SVG သည် အသုံးပြုနိုင်သော အသုံးချင်း အချက်အလက် အတော်များများ ကို ပြန်လည်ပေးသည်။ ဒီလုံးအချိန်တွင်,ကျန်းမာရေးကို ပြောကြားပါလိမ့်မယ်:

  • stroke
  • stroke-width
  • stroke-linecap
  • stroke-dasharray

အရာသုံးချင်း ကို ကိုယ်စားပြုထားသော ပုံသဏ္ဍာန် များ အား မည်သည့် အမျိုးသား အစီအစဉ် မျိုး တွင် အသုံးပြုနိုင်သည် (ပုံဝိုင်းအပြင်)。

SVG stroke အခြေခံ

stroke အသုံးပြုသည့် အရောက်အခြား အကိုင်းအခြား အသုံးပြုသည်:

ပုံမှန် SVG စကာတင်ချက်:

<svg height="80" width="300">
  <g fill="none">
    <path stroke="red" d="M5 20 l215 0" />
    <path stroke="black" d="M5 40 l215 0" />
    <path stroke="blue" d="M5 60 l215 0" />
  

亲自试一试

SVG stroke-width အခြေခံ

stroke-width အသုံးပြုသည့် အရောက်အခြား အကိုင်းအခြား အသုံးပြုသည်:

ပုံမှန် SVG စကာတင်ချက်:

<svg height="80" width="300">
  <g fill="none" stroke="black">
    <path stroke-width="2" d="M5 20 l215 0" />
    <path stroke-width="4" d="M5 40 l215 0" />
    <path stroke-width="6" d="M5 60 l215 0" />
  

亲自试一试

SVG stroke-linecap အခြေခံ

stroke-linecap အသုံးပြုသည့် အကိုင်းအခြား အဖြေအရေးအသုံးပြုသည်:

ပုံမှန် SVG စကာတင်ချက်:

<svg height="80" width="300">
  <g fill="none" stroke="black" stroke-width="6">
    <path stroke-linecap="butt" d="M5 20 l215 0" />
    <path stroke-linecap="round" d="M5 40 l215 0" />
    <path stroke-linecap="square" d="M5 60 l215 0" />
  

亲自试一试

SVG stroke-dasharray အခြေခံ

stroke-dasharray ကိန်းသုံးသည့် အသုံးပြုသည်:

ပုံမှန် SVG စကာတင်ချက်:

<svg height="80" width="300">
  <g fill="none" stroke="black" stroke-width="4">
    <path stroke-dasharray="5,5" d="M5 20 l215 0" />
    <path stroke-dasharray="10,10" d="M5 40 l215 0" />
    <path stroke-dasharray="20,10,5,5,5,10" d="M5 60 l215 0" />
  

亲自试一试