Category: Front-End

화면단 개발관련 카테고리입니다.

Front-End

[HTML] 스크롤 자동 노출하기

높이가 160px를 넘어가면 자동으로 스크롤이 노출된다.     < div class=”ajax_partial” data-url=”/Main/UserPartial” style=”height: 160px;overflow: auto;”>         @Html.Partial(“LoadingCircle”)     < /div>
Front-End

[HTML] Radio버튼 체크값 가져오기

< ul>                      < li style=”float:left; width:130%;”>        < label class=”subject3″>구분         @Html.RadioButton(“DisplayFlag”, 1, new { @class = “radio”, @id = “radio1”, @checked = “checked” })        < label class=”normal” for=”radio1″>영어< /label>      ...
Front-End

[HTML] 태그 속성 중 readonly 와 disabled의 차이점

< input type=”text” id=”fileName” value=”test.txt” readonly /> < input type=”text” id=”fileName” value=”test.txt” disabled /> Form를  submit를 하였을 때  readonly 의 경우  백엔드 쪽으로 값이 넘어오지만,  disabled의 경우 백엔드 쪽으로 값이 넘어 오지 않는다.   [asp.net...
Front-End

[javascript]Math()함수를 이용한 올림, 버림, 반올림

Math()함수 사용방법 [Math.floor() : 소수점 버림 ] document.write(Math.floor(123.456)); →124 document.write(Math.floor(123.567)); →124 [Math.round() : 소수점 반올림 ] document.write(Math.round(123.456)); →123 document.write(Math.round(123.567)); →124 [Math.ceil() : 소수점 올림 ] document.write(Math.ceil(123.456)); →124  document.write(Math.ceil(123.567)); →124  [toFixed() : 소수점 이하 숫자를 지정한 자릿수만 남기고  반올림] document.write((123.456).toFixed(0)); →123...