Language (3) 썸네일형 리스트형 C# String과 string의 차이 String은 원래 System.String인데 System 네임스페이스를 using System;으로 사용하고 있기 때문에 String으로 써도 상관없음string은 C#에서 사용하는 String의 별칭 결론은 차이없다. 이밖에 int는 System.Int32의 별칭, bool은 System.Boolean의 별칭, double은 System.Double의 별칭이다. [JQuery] select 박스 첫 번째 인덱스로 바꾸기 Form 전송을 하고나서 모든 값을 초기화 할 일이 생긴다. input이나 textarea는 view plaincopy to clipboardprint?$('input').val(''); $('textarea').val(''); 을 사용 해서 빈 칸으로 만들어주면 되는데 select는 그렇지 않다. 아래와 같이 작성하면 모든 select 요소를 첫 번째 인덱스로 설정한다. view plaincopy to clipboardprint?$('select').find('option:first').attr('selected', 'selected'); 셀렉터를 $('select option:first') 로 하지 않는 이유는 첫 번째 select 요소만 바꾸기 때문이다. [CSS] table, div 긴글 자동 줄바꿈 긴글 자동 줄바꿈?12table {table-layout:fixed;}td {word-break:break-all; word-wrap:break-word;}?12345678{word-wrap: break-word; /* Internet Explorer 5.5+ */white-space: pre-wrap; /* css-3 */white-space: -moz-pre-wrap; /* Mozilla, since 1999 */white-space: -pre-wrap; /* Opera 4-6 */white-space: -o-pre-wrap; /* Opera 7 */word-break:break-all;}?123{word-break:break-all; word-wrap:break-word;} 반대로 한줄로 표시할 때.. 이전 1 다음