တည်ဆောက်တမ်းကြောင်း ပုံစံသတင်း

ပုံစံသတင်းကို တည်ဆောက်ရာတွင် CSS ကို အသုံးပြုကြည်းသည့် စကားရပ်

ဘာလ် ဂေးစ်
ဘာလ် ဂေးစ်

CEO & Founder, Example

Harvard University

亲自试一试

ပုဂ္ဂိုလ်ရေးကဏ္ဍ ဖန်တီးနိုင်ခြင်း

ပထမပိုင်း - ပရိုဂရမ်များ ထပ်ပေးပါ:

<!-- အကြောင်းအရာတိုက်တိုက် -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<div class="card">
  <img src="img.jpg" alt="John" style="width:100%">
  <h1>Bill Gates</h1>
  <p class="title">CEO & Founder, Example</p>
  <p>Harvard University</p>
  <a href="#"><i class="fa fa-dribbble"></i></a>
  <a href="#"><i class="fa fa-twitter"></i></a>
  <a href="#"><i class="fa fa-linkedin"></i></a>
  <a href="#"><i class="fa fa-facebook"></i></a>
  <p><button>ဆက်သွယ်</button></p>
</div>

ဒုတိယပိုင်း - ပရိုဂရမ်များ ထပ်ပေးပါ:

.card {
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
  max-width: 300px;
  margin: auto;
  text-align: center;
}
.title {
  အကြောင်းအရာ: ဂွံဖား;
  font-size: 18px;
}
button {
  border: none;
  outline: 0;
  display: inline-block;
  padding: 8px;
  အကြောင်းအရာ: ဝေါ့;
  background-color: #000;
  text-align: center;
  cursor: pointer;
  width: 100%;
  font-size: 18px;
}
a {
  text-decoration: none;
  font-size: 22px;
  အကြောင်းအရာ: ဂါး;
}
button:hover, a:hover {
  opacity: 0.7;
}

亲自试一试