Hướng dẫn ecommerce website using html css javascript and php - trang web thương mại điện tử sử dụng html css javascript và php
- home
- women
- men
- kids
- accessories
Nhập chế độ FullScreenen EXIT Mode FullScreen
Mở tệp
.links-container{
width: 100%;
display: flex;
padding: 10px 10vw;
justify-content: center;
list-style: none;
border-top: 1px solid #d1d1d1;
}
.link{
text-transform: capitalize;
padding: 0 10px;
margin: 0 5px;
text-decoration: none;
color: #383838;
opacity: 0.5;
transition: .5s;
}
.link:hover{
opacity: 1;
}
4. Và bên trong nó trước khi bắt đầu kiểu dáng. Vì chúng ta sẽ có cùng một thanh navbar và chân trang trong tất cả các trang. Tôi đã nghĩ đến việc làm cho phong cách của họ như một tập tin riêng biệt. Vì vậy, nhập tệp .links-container{
width: 100%;
display: flex;
padding: 10px 10vw;
justify-content: center;
list-style: none;
border-top: 1px solid #d1d1d1;
}
.link{
text-transform: capitalize;
padding: 0 10px;
margin: 0 5px;
text-decoration: none;
color: #383838;
opacity: 0.5;
transition: .5s;
}
.link:hover{
opacity: 1;
}
7 bên trong .links-container{
width: 100%;
display: flex;
padding: 10px 10vw;
justify-content: center;
list-style: none;
border-top: 1px solid #d1d1d1;
}
.link{
text-transform: capitalize;
padding: 0 10px;
margin: 0 5px;
text-decoration: none;
color: #383838;
opacity: 0.5;
transition: .5s;
}
.link:hover{
opacity: 1;
}
4.
Nhập chế độ FullScreenen EXIT Mode FullScreen
Mở tệp.links-container{
width: 100%;
display: flex;
padding: 10px 10vw;
justify-content: center;
list-style: none;
border-top: 1px solid #d1d1d1;
}
.link{
text-transform: capitalize;
padding: 0 10px;
margin: 0 5px;
text-decoration: none;
color: #383838;
opacity: 0.5;
transition: .5s;
}
.link:hover{
opacity: 1;
}
4. Và bên trong nó trước khi bắt đầu kiểu dáng. Vì chúng ta sẽ có cùng một thanh navbar và chân trang trong tất cả các trang. Tôi đã nghĩ đến việc làm cho phong cách của họ như một tập tin riêng biệt. Vì vậy, nhập tệp .links-container{
width: 100%;
display: flex;
padding: 10px 10vw;
justify-content: center;
list-style: none;
border-top: 1px solid #d1d1d1;
}
.link{
text-transform: capitalize;
padding: 0 10px;
margin: 0 5px;
text-decoration: none;
color: #383838;
opacity: 0.5;
transition: .5s;
}
.link:hover{
opacity: 1;
}
7 bên trong .links-container{
width: 100%;
display: flex;
padding: 10px 10vw;
justify-content: center;
list-style: none;
border-top: 1px solid #d1d1d1;
}
.link{
text-transform: capitalize;
padding: 0 10px;
margin: 0 5px;
text-decoration: none;
color: #383838;
opacity: 0.5;
transition: .5s;
}
.link:hover{
opacity: 1;
}
4.Và làm các phong cách liên quan đến Navbar bên trong
.links-container{
width: 100%;
display: flex;
padding: 10px 10vw;
justify-content: center;
list-style: none;
border-top: 1px solid #d1d1d1;
}
.link{
text-transform: capitalize;
padding: 0 10px;
margin: 0 5px;
text-decoration: none;
color: #383838;
opacity: 0.5;
transition: .5s;
}
.link:hover{
opacity: 1;
}
9.
best fashion collection of all time
Nhập chế độ FullScreenen EXIT Mode FullScreen
Mở tệp.links-container{
width: 100%;
display: flex;
padding: 10px 10vw;
justify-content: center;
list-style: none;
border-top: 1px solid #d1d1d1;
}
.link{
text-transform: capitalize;
padding: 0 10px;
margin: 0 5px;
text-decoration: none;
color: #383838;
opacity: 0.5;
transition: .5s;
}
.link:hover{
opacity: 1;
}
4. Và bên trong nó trước khi bắt đầu kiểu dáng. Vì chúng ta sẽ có cùng một thanh navbar và chân trang trong tất cả các trang. Tôi đã nghĩ đến việc làm cho phong cách của họ như một tập tin riêng biệt. Vì vậy, nhập tệp .links-container{
width: 100%;
display: flex;
padding: 10px 10vw;
justify-content: center;
list-style: none;
border-top: 1px solid #d1d1d1;
}
.link{
text-transform: capitalize;
padding: 0 10px;
margin: 0 5px;
text-decoration: none;
color: #383838;
opacity: 0.5;
transition: .5s;
}
.link:hover{
opacity: 1;
}
7 bên trong .links-container{
width: 100%;
display: flex;
padding: 10px 10vw;
justify-content: center;
list-style: none;
border-top: 1px solid #d1d1d1;
}
.link{
text-transform: capitalize;
padding: 0 10px;
margin: 0 5px;
text-decoration: none;
color: #383838;
opacity: 0.5;
transition: .5s;
}
.link:hover{
opacity: 1;
}
4.@import 'nav.css';
.hero-section{
width: 100%;
height: calc[100vh - 120px];
background-image: url['../img/header.png'];
background-size: cover;
display: flex;
justify-content: center;
align-items: center;
}
.hero-section .logo{
height: 150px;
display: block;
margin: auto;
}
.hero-section .sub-heading{
margin-top: 10px;
text-align: center;
color: #fff;
text-transform: capitalize;
font-size: 35px;
font-weight: 300;
}
Nhập chế độ FullScreenen EXIT Mode FullScreen
Mở tệp.links-container{
width: 100%;
display: flex;
padding: 10px 10vw;
justify-content: center;
list-style: none;
border-top: 1px solid #d1d1d1;
}
.link{
text-transform: capitalize;
padding: 0 10px;
margin: 0 5px;
text-decoration: none;
color: #383838;
opacity: 0.5;
transition: .5s;
}
.link:hover{
opacity: 1;
}
4. Và bên trong nó trước khi bắt đầu kiểu dáng. Vì chúng ta sẽ có cùng một thanh navbar và chân trang trong tất cả các trang. Tôi đã nghĩ đến việc làm cho phong cách của họ như một tập tin riêng biệt. Vì vậy, nhập tệp .links-container{
width: 100%;
display: flex;
padding: 10px 10vw;
justify-content: center;
list-style: none;
border-top: 1px solid #d1d1d1;
}
.link{
text-transform: capitalize;
padding: 0 10px;
margin: 0 5px;
text-decoration: none;
color: #383838;
opacity: 0.5;
transition: .5s;
}
.link:hover{
opacity: 1;
}
7 bên trong .links-container{
width: 100%;
display: flex;
padding: 10px 10vw;
justify-content: center;
list-style: none;
border-top: 1px solid #d1d1d1;
}
.link{
text-transform: capitalize;
padding: 0 10px;
margin: 0 5px;
text-decoration: none;
color: #383838;
opacity: 0.5;
transition: .5s;
}
.link:hover{
opacity: 1;
}
4.
- home
- women
- men
- kids
- accessories
best fashion collection of all time
0 bên trong
best fashion collection of all time
1.Điều đó không đơn giản. Bạn cũng có thể sao chép phần tử container sản phẩm từ trang chủ đến đây. Sau khi hoàn thành sao chép thẻ. Hãy tạo phần chi tiết sản phẩm. Làm cho nó sau
const createNav = [] => {
let nav = document.querySelector['.navbar'];
nav.innerHTML = `
search
- home
- women
- men
- kids
- accessories
`;
}
createNav[];
0.
home
women
men
kids
accessories
7Nhập chế độ FullScreenen EXIT Mode FullScreen
Sản phẩm.css
home
women
men
kids
accessories
8Nhập chế độ FullScreenen EXIT Mode FullScreen
Tạo phần chi tiết trong ngay bây giờ.
home
women
men
kids
accessories
9Nhập chế độ FullScreenen EXIT Mode FullScreen
Đầu ra
Bây giờ chỉ là một phần đơn giản chúng ta phải thực hiện. Một phần mô tả chi tiết. Làm là bên ngoài
best fashion collection of all time
3Bây giờ làm cho thanh trượt hình ảnh hoạt động và nút kích thước có thể chuyển đổi. Mở tệp
best fashion collection of all time
4. Trang sản phẩm..links-container{
width: 100%;
display: flex;
padding: 10px 10vw;
justify-content: center;
list-style: none;
border-top: 1px solid #d1d1d1;
}
.link{
text-transform: capitalize;
padding: 0 10px;
margin: 0 5px;
text-decoration: none;
color: #383838;
opacity: 0.5;
transition: .5s;
}
.link:hover{
opacity: 1;
}
0Nhập chế độ FullScreenen EXIT Mode FullScreen
Đầu raTrong trang sản phẩm. Viết mẫu HTML 5. Và liên kết
.links-container{
width: 100%;
display: flex;
padding: 10px 10vw;
justify-content: center;
list-style: none;
border-top: 1px solid #d1d1d1;
}
.link{
text-transform: capitalize;
padding: 0 10px;
margin: 0 5px;
text-decoration: none;
color: #383838;
opacity: 0.5;
transition: .5s;
}
.link:hover{
opacity: 1;
}
4,
8 tệp.Và nhập các tệp JS này.
Và bây giờ bạn chỉ có thể tạo một thanh điều hướng và chân trang bằng cách thêm phần tử
const createNav = [] => {
let nav = document.querySelector['.navbar'];
nav.innerHTML = `
search
- home
- women
- men
- kids
- accessories
`;
}
createNav[];
3 và
best fashion collection of all time
0 bên trong
best fashion collection of all time
1..links-container{
width: 100%;
display: flex;
padding: 10px 10vw;
justify-content: center;
list-style: none;
border-top: 1px solid #d1d1d1;
}
.link{
text-transform: capitalize;
padding: 0 10px;
margin: 0 5px;
text-decoration: none;
color: #383838;
opacity: 0.5;
transition: .5s;
}
.link:hover{
opacity: 1;
}
1Nhập chế độ FullScreenen EXIT Mode FullScreen
Điều đó không đơn giản. Bạn cũng có thể sao chép phần tử container sản phẩm từ trang chủ đến đây. Sau khi hoàn thành sao chép thẻ. Hãy tạo phần chi tiết sản phẩm. Làm cho nó sauconst createNav = [] => {
let nav = document.querySelector['.navbar'];
nav.innerHTML = `
search
- home
- women
- men
- kids
- accessories
`;
}
createNav[];
0..links-container{
width: 100%;
display: flex;
padding: 10px 10vw;
justify-content: center;
list-style: none;
border-top: 1px solid #d1d1d1;
}
.link{
text-transform: capitalize;
padding: 0 10px;
margin: 0 5px;
text-decoration: none;
color: #383838;
opacity: 0.5;
transition: .5s;
}
.link:hover{
opacity: 1;
}
2Nhập chế độ FullScreenen EXIT Mode FullScreen
Đầu raSản phẩm.css
Tạo phần chi tiết trong ngay bây giờ.
Bây giờ chỉ là một phần đơn giản chúng ta phải thực hiện. Một phần mô tả chi tiết. Làm là bên ngoài
best fashion collection of all time
3
best fashion collection of all time
- Bây giờ làm cho thanh trượt hình ảnh hoạt động và nút kích thước có thể chuyển đổi. Mở tệp
4.best fashion collection of all time
- Và sau đó mã này.
- Công việc tuyệt vời! Chúng tôi cũng được thực hiện với trang sản phẩm. Bây giờ chúng ta phải làm cho trang tìm kiếm rất đơn giản.
- Trang tìm kiếm
- Khi chúng tôi làm Navbar và chân trang trong trang sản phẩm. Làm tương tự cho trang này cũng. Liên kết các tệp này với nó.
Bây giờ làm cho các thẻ sản phẩm. Đầu tiên làm cho tiêu đề.
Search.css
Đối với thẻ, chúng tôi sẽ sử dụng cùng một thẻ chúng tôi đã làm cho trang chủ. Chỉ cần sao chép phần tử
best fashion collection of all time
5 từ trang chủ và dán nó vào bên trong
best fashion collection of all time
6.Nhưng chúng tôi đang sử dụng Flex Box sẽ làm cho các thẻ đi cạnh nhau. Nhưng chúng tôi không muốn điều đó cho trang tìm kiếm của chúng tôi. Vì vậy, chỉ cần viết thuộc tính
best fashion collection of all time
5 yếu tố.