css form input type="text" readonly ๋ฌธ์ํ๊ธฐ ๋ง๋ค๊ธฐ
์ด๊ธฐํ์ฝ๋๋ก form ๋์์ธ ์์ ๊ธฐ
์์ ์ฝ๋
<form>
<fieldset>
<legend>๋ฌธ์์์ฑํ๊ธฐ</legend>
<div class="inquri_wrap">
<table>
<caption>๋ฌธ์ํ๊ธฐํ
์ด๋ธ</caption>
<tr>
<th class="col01">์ด๋ฆ<i class="star"></i></th>
<td><input type="text" readonly value="๋ฐํจ์ง" title="์ด๋ฆ์
๋ ฅ"></td>
</tr>
<tr>
<th>์ฐ๋ฝ์ฒ<i class="star"></i></th>
<td><input type="text" title="์ฐ๋ฝ์ฒ์
๋ ฅ"></td>
</tr>
<tr>
readonly
์ด๋ฆ ๋ถ๋ถ์ด ๋จผ์ ๋ค์ด๊ฐ์๊ณ ์ฌ์ฉ์๊ฐ ์ธ์ ์๋๋ก ๋ฏธ๋ฆฌ ์ง์ ํด์ค๋ค
<td><input type="text" readonly value="๋ฐํจ์ง" title="์ด๋ฆ์ ๋ ฅ"></td>
(title ๋ฏธ์ ์ฉ์ ์น ์ ๊ทผ์ฑ ๊ฒฝ๊ณ )
ํ ๋์์ธ
ํ ์ด๋ธ์ ์ฒซํ ์น์ ์ด ์์ผ๋ฏ๋ก thead๋ ํ์์์
๋จ th๋ก ์ฒซ์ด ์นธ์ด๋ฆ์ ์ง์ ํ์ฌ ํด๋์ค๋ช ์ผ๋ก ๋์ด๋ฅผ ์ง์ ํ ์ ์๊ฒํ๋ค.
<!-- thead๊ฐ ์์๊ฒฝ์ฐ table-layout:fixed ์์ด์ผ ๊ธธ์ด ์กฐ์ ๋จ -->
html ์์ฑ ์ )
<th class="col01">์ด๋ฆ<i class="star"></i></th>
ํ ๊ธธ์ด ์๋์กฐ์
.inquiry_page .inquiry_area table {
table-layout: auto;
}
๋ํ ์ผ ๋์์ธ ์กฐ์
.inquiry_page .inquiry_area th {
border-bottom: 1px solid #e8e8e8;
padding: 12px 0;
text-align: left;
font-weight: 500;
}
์ง์ ํด์คฌ๋ ์ฒซํ์นธ์ ํด๋์ค๋ช ์ผ๋ก ๋์ด์กฐ์
.inquiry_page .inquiry_area .col01 {
width: 130px;
}
.inquiry_page .inquiry_area td {
border-bottom: 1px solid #e8e8e8;
padding: 12px 0;
}
์์ฑ์ ํ์์ focus ๋ก ํ ๋๋ฆฌ์ ์์ ์ฃผ๊ธฐ