HTML JavaMail - HTML에 이미지도 같이 보내기 HTML로 <img> 태그 써서 외부에 있는 이미 파일 링크거는거야.. 별거 아니고 그냥 html만 문자열로 잘 그리면 되는거죠. 그런데, 그런 절대경로로 이미지 참조하는거 말고, 이미지 파일을 동봉해서 상대경로로 참조하게 하는 방법입니다. http://www.rgagnon.com/javadetails/java-0504.html 위에 잘 나와있습니다. 이번에도 전 메소드 하나만 샥~ 바꾸면 끝..
HTML JavaMail - HTML 메일 보내기 이전 코드에서 getMessage부분에서 한 줄만 바꾸면 됨. message.setText()로 보냈었는데, 이번에는 setContent(“내용”, “메일타입”); 형태로 보냄. private MimeMessage getMimeMessage(Session session, String title, String contents, String to) { MimeMessage message = new MimeMessage(session);
CSS Chapter 14. Image Replacement Fahrner Image Replacement (FIR) CSS를 적용해서 이미지로 교체할 텍스트를 표시한다. <h1 id="fir">Fahrner Image Replacement</h1> 텍스트를 제거해야 하니까 <span>으로 감싸서 제거한다. <h1 id="fir"><span>Fahrner Image Replacement</span></h1>#fir span { display:
CSS Chpater 13. Styling Text Hypertext를 좀 더 멋지게 보이게 하는 방법 Times They are a-Changing Times(Times new roman) 글자체는 여러 브라우저의 기본 글자체다. however, this could easily be changed by users to whatever they fancy, and of course shouldn’t be relied upon. 줄 높이 설정하기 body { line-height: 1.5em; } 줄 높이를
CSS Chapter 10. Applying CSS CSS를 문서에 적용하는 방법 <style> 엘리먼트 <style type="text/css"> <![CDATA[ ... CSS declarations here ... ]]> </style> embedded style sheet라고도 하며, CSS를 이해하지 못하는 브라우저들을 위해 CDATA 주석 안에 둔다. 페이지를 로딩할 때마다 스타일을 정의한 부분도 매번 다운로드 된다. 여러 페이지에서 동일한 스타일을 사용하고
block 엘리먼트 사용하기 Chapter 9. Minimizing Markup 태그 최소화 하기 Descendant Selectors <div id="sidebar"> <h3>About This Site</h3> <p>This is my site.</p> <h3>My Links</h3> <ul> <li><a href="archives.html">Archives&
CSS Chapter 8. More Lists 순서가 있는 목록을 표현하는 방법 <ul> 사용하기 <ul> <li>1. Chop the onions.</li> <li>2. Saute the onions for 3 minutes.</li> <li>3. Add 3 cloves of garlic.</li> <li>
A Chapter 7. Anchors 페이지 내부로 이동하는 방법 비어있는 <a> 태그 사용하기 <p><a href="#oranges">About Oranges</a></p><a name="oranges"></a><h2>Oranges Are Tasty</h2> 이동할 위치 위에 name속성을 사용하고 <a&
CSS Chapter 6. Strong, EM and Other Phrase Elements 표현 vs 구조 왜 <b>나 <i> 대신에 <strong>이나 <em>을 사용해야 하는가? 표현법을 알려주는것이 아니라 의미와 구조를 설정하기 위해서다. <em>은 emphasis 강조, <strong>은 strong 강한 강조: 이 둘을 어떻게 표현하느냐는 브라우저에 달려있다. 보통은 <
CSS Chapter 5. Forms 폼을 구성하는 방법 <table> 사용하기 <form action="/path/to/script" method="post"> <table> <tr> <th>Name:</th> <td><input type="text" name="name" /></td> </tr> <tr> <th&
blockquote Chapter 4. Quatations Quotations을 표현하는 방법 의미의 부재 <p>"Misquotations are the only quotations that are nevermisquoted."</p><p>— Hesketh Pearson</p> 본문의 다른 부분과 확연히 다른 어떤 스타일을 적용할 수가 없다. class 사용하기 <div class="quotation"> <p>Misquotations are
blockquate Chapter 4. Quatations Quotations을 표현하는 방법 의미의 부재 <p>"Misquotations are the only quotations that are nevermisquoted."</p><p>— Hesketh Pearson</p> 본문의 다른 부분과 확연히 다른 어떤 스타일을 적용할 수가 없다. class 사용하기 <div class="quotation"> <p>Misquotations are
CSS Chapter 3. Tables are Evil? Tabular Data Calendar Spreadsheet Chart Schedule <table> 사용하기 <caption>은 <table> 태그 안에 위치 시킨다. <table>의 summary 속성에 설명을 달 수 있다. 헤더는 <th>로 의미를 부여한다. <th>의 id 속성과 <td>의 headers 속성에
CSS Chapter 2. Headings 문서의 제목을 나타내는 방법 CSS를 사용하기 pan class="heading">Super Cool Page Title</span>.heading { font-size: 24px; font-weight: bold; color: blue; } CSS를 인식하지 못하는 장치나, 외부 CSS로 빼냈을 때는 예전 브라우저들이 인식하지 못할 수도 있다. 검색 엔진이 <span>태그로 둘러쌓인 부분은 중요하게 여기지 않는다. <
CSS Chapter 1. Lists 목록을 표편하는 방법 <br/> 사용 Apples<br />Spaghetti<br />Green Beans<br />Milk<br /> CSS를 적용할 수가 없다. 글자가 길면 다음 줄로 넘어가 버리는데, 이 때 알아보기가 쉽지 않다. 비추. <ol>, <li> 사용 <ul>
form 태그 HTML 공부 중 2탄 오늘은 http://www.w3schools.com/html/html_forms.asp 여기 공부합니다.입력 하는 부분 만들어야 해서요. 폼 태그 <form name=”input” action=”html_form_action.asp” method=”get”> Type your first name: <input type=”text” name=”FirstName”
a 태그 HTML 공부 중 참조 : http://www.w3schools.com/html/html_intro.asp위 링크를 참조하며 공부하고 있습니다. 앵커 태그 <a href=”whiteship.tistory.com”>My Blog</a>이렇게 쓰는것이 가장 기본 형태 같습니다. <a name=”index”>목차</a><a href=”