vstoan
02-07-2008, 10:04
Cấu trúc trang web của em như sau: thư mục css chứa file style.css, thư mục images chứa tất cả hình ảnh và file index.html. Em khai báo đường dẫn đến file style.css trong trang index như sau:
<HEAD>
<STYLE TYPE="text/css">
@import url(css/style.css);
</STYLE>
</HEAD>
Em insert các dòng sau đây vào:
<table border="0" cellpadding="0" cellspacing="0" align="center" width="811">
<tr>
<td colspan="2" class="Frame_Price_01">
</td>
<td class="Frame_Price_02">
</td>
<td colspan="2" class="Frame_Price_03">
</td>
</tr>
</table>
Và file style.css của em:
.Frame_Price_01
{
background-image:url(images/Frame_Price_01.gif);
background-repeat:no-repeat;
width:11px;
height:56px;
}
.Frame_Price_02
{
background-image:url(images/Frame_Price_02.gif);
background-repeat:no-repeat;
width:793;
height:56px;
}
.Frame_Price_03
{
background-image:url(images/Frame_Price_03.gif);
background-repeat:no-repeat;
width:7px;
height:56px;
}
Khi chạy file index.html thì nó ko hiểu định dạng CSS? Em đặt CSS liên quan đến text thì nó hiểu còn những gì liên quan đến hình ảnh thì nó ko hiểu và ko load hình lên đc. Giúp em với các tiền bối ơi! Em cảm on rất nhiều.
<HEAD>
<STYLE TYPE="text/css">
@import url(css/style.css);
</STYLE>
</HEAD>
Em insert các dòng sau đây vào:
<table border="0" cellpadding="0" cellspacing="0" align="center" width="811">
<tr>
<td colspan="2" class="Frame_Price_01">
</td>
<td class="Frame_Price_02">
</td>
<td colspan="2" class="Frame_Price_03">
</td>
</tr>
</table>
Và file style.css của em:
.Frame_Price_01
{
background-image:url(images/Frame_Price_01.gif);
background-repeat:no-repeat;
width:11px;
height:56px;
}
.Frame_Price_02
{
background-image:url(images/Frame_Price_02.gif);
background-repeat:no-repeat;
width:793;
height:56px;
}
.Frame_Price_03
{
background-image:url(images/Frame_Price_03.gif);
background-repeat:no-repeat;
width:7px;
height:56px;
}
Khi chạy file index.html thì nó ko hiểu định dạng CSS? Em đặt CSS liên quan đến text thì nó hiểu còn những gì liên quan đến hình ảnh thì nó ko hiểu và ko load hình lên đc. Giúp em với các tiền bối ơi! Em cảm on rất nhiều.