메일 보내기에서...
html 형식으로 보내려고...
내용을 아래와 같이 만들었습니다..
아래의 코드는 잘되는 거구요...
클래스이름을 .ttl 대신 .title 을 쓰면..안먹히네요?
왜그럴까요??
css도 버그(?) ,클레스이름 제약(?)이 있나요??
.
.
.
여기까지 쓰고 IE8로 테스트해보니...둘다 잘되는군요..
크롬에서만 그런가보네요??
그럼 크롬 버그??

독감걸려 머리도 아프구만.....쯔...
-------------------작성한코드입니다--------------
$contents ='<html xmlns="http://www.w3.org/1999/xhtml"><head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Untitled Document</title>
<style>
table
{
border:4px solid #e4e4e4;
color:#333;
font-size:12px;
background:#999;
font-family:Verdana, Geneva, sans-serif;
width:500px;
}
th
{
padding:7px 10px;
text-align:right;
background:#fff;
color:#888;
}
.ttl
{
font-size:14px;
text-align:center;
color:#900;
border-bottom:2px solid #900;
}
td
{
padding:7px 10px;
text-align:left;
background:#fff
}
</style></head>
<body>';
$contents .='<table border="0" cellpadding="0" cellspacing="1">
<tbody><tr>
<th colspan="2" class="ttl">'.$from_name.'님의 예약문의입니다.</th>
</tr>
<tr>
<th width="40%">Room type</th>
<td>'.$room_type.'</td>
</tr>
<tr>
<th>Check in </th>
<td>'.$check_in.'</td>
</tr>
<tr>
<th>Chech out</th>
<td>'.$check_out.'</td>
</tr>
<tr>
<th>Guest name</th>
<td>'.$guest_name.'</td>
</tr>
<tr>
<th>Adult<br>
(above 8 yrs old)</th>
<td>'.$adult_count.'</td>
</tr>
<tr>
<th>
Child <br>
(below 7 yrs old)</th>
<td>'.$child_count.'</td>
</tr>
<tr>
<th>Telephone<br>number</th>
<td>'.$telephone_num.'</td>
</tr>
<tr>
<th>Mobile</th>
<td>'.$mobile.'</td>
</tr>
<tr>
<th>E-mail </th>
<td>'.$mail.'</td>
</tr>
<tr>
<th>Enquiry </th>
<td><textarea cols="40">'.$enquiry.'</textarea></td>
</tr>
</tbody></table>';
$contents .="</body></html>";
|
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기
댓글 4개
css 클래스명이 예약어 금지는 없습니다. 네이밍 룰은 있어서 숫자를 앞에쓰지말던가..
아마도.. 무슨메일인데요? 메일쪽태그와 충돌이겠죠
크롬은 대체적으로 ie보다 표준을 따라가니 충돌일수도
크롬에서 잘되신다구요....
제쪽에 문제가 있나보네요..
감사합니다..