ဆက်သွယ်ရန်ပုံစံ
CSS ဖြင့် ဆက်သွယ်မှုပုံစံတစ်ခုကို ဖန်တီးနည်းကို လေ့လာပါ။
ဆက်သွယ်ရန် ဖောင်တစ်ခု ဖန်တီးနည်း
အဆင့် 1) HTML ကိုထည့်ပါ။
ထည့်သွင်းမှုကို လုပ်ဆောင်ရန် <form> ဒြပ်စင်ကို အသုံးပြုပါ။ ဤအကြောင်းကို ကျွန်ုပ်တို့၏ PHP သင်ခန်းစာ တွင် သင်ပိုမိုလေ့လာနိုင်ပါသည် ။ ထို့နောက် အကွက်တစ်ခုစီအတွက် ထည့်သွင်းချက်များ (ကိုက်ညီသော အညွှန်းတစ်ခုဖြင့်) ထည့်ပါ-
ဥပမာ
<div class="container">
<form action="action_page.php">
<label for="fname">First Name</label>
<input type="text"
id="fname" name="firstname" placeholder="Your name..">
<label for="lname">Last Name</label>
<input type="text"
id="lname" name="lastname" placeholder="Your last name..">
<label for="country">Country</label>
<select
id="country" name="country">
<option value="australia">Australia</option>
<option value="canada">Canada</option>
<option value="usa">USA</option>
</select>
<label for="subject">Subject</label>
<textarea
id="subject" name="subject" placeholder="Write something.."
style="height:200px"></textarea>
<input
type="submit" value="Submit">
</form>
</div>
အဆင့် 2) CSS ကိုထည့်ပါ
ဥပမာ
/* Style inputs with type="text", select elements and textareas */
input[type=text], select, textarea {
width: 100%; /*
Full width */
padding: 12px; /* Some padding */
border: 1px solid #ccc;
/* Gray border */
border-radius: 4px; /* Rounded borders */
box-sizing: border-box;
/* Make sure that padding and width stays in place */
margin-top: 6px; /* Add a top margin */
margin-bottom: 16px;
/* Bottom margin */
resize: vertical /* Allow the user
to vertically resize the textarea (not horizontally) */
}
/* Style the submit button with a specific background color etc */
input[type=submit] {
background-color: #04AA6D;
color: white;
padding: 12px 20px;
border: none;
border-radius: 4px;
cursor: pointer;
}
/* When moving the mouse over the submit button,
add a darker green color */
input[type=submit]:hover {
background-color: #45a049;
}
/* Add a background color and some
padding around the form */
.container {
border-radius: 5px;
background-color: #f2f2f2;
padding: 20px;
}
အကြံပြုချက်- HTML Form အကြောင်းပိုမိုလေ့လာရန် ကျွန်ုပ်တို့၏ HTML Form Tutorial သို့ သွားပါ ။
အကြံပြုချက်- ဖောင် ပုံစံဒြပ်စင်များကို စတိုင်လ်ပုံစံလုပ်နည်းကို ပိုမိုလေ့လာရန် ကျွန်ုပ်တို့၏ CSS Form Tutorial သို့ သွား ပါ။
W3Schools Spaces အကြောင်း ကြားဖူး ပါသလား။ ဤနေရာတွင် သင်သည် သင့်ဝဘ်ဆိုဒ်ကို အစမှအဆုံး ဖန်တီးနိုင်သည် သို့မဟုတ် နမူနာပုံစံတစ်ခုကို အသုံးပြုကာ ၎င်းကို အခမဲ့ လက်ခံဆောင်ရွက်ပေးနိုင်သည်။
❯ အခမဲ့ စတင်လိုက်ပါ။* ခရက်ဒစ်ကတ်မလိုအပ်ပါ။