課程
/前端開發
/React.JS
/React 16實現訂單列表及評價功能
scss樣式
2020-01-20
源自:React 16實現訂單列表及評價功能
正在回答
.header {
????background-color: #E9203D;
????color: #FFFFFF;
????height: 2rem;
????text-align: center;
????font-size: 1rem;
????line-height: 2rem;
????position: fixed;
????top: 0;
????width: 100%;
}
.order {
????height: 100%;
????overflow: scroll;
.orderList {
????display: block;
????padding: 2.2rem 0.5rem 0.2rem 0.5rem;
????.orderList__picContainer {
????padding-right: 0.625rem;
????display: inline-block;
????.orderList__pic {
????width: 5.625rem;
????height: 5.625rem;
????}
.orderList__content {
????width: calc(100% - 6.25rem);
????line-height: 1.75rem;
????.orderList__product {
????max-width: 15rem;
????font-weight: 700;
????color: #111111;
????padding-right: 0.5rem;
????box-sizing: border-box;
????overflow: hidden;
????text-overflow: ellipsis;
????white-space: nowrap;
.orderList__shop {
????font-size: 0.8125rem;
????color: #777777;
????padding: 0.5625rem 0.8125rem ?0;
.orderList__detail {
????display: flex;
????justify-content: space-between;
????height: 1.375rem;
????line-height: 1.375rem;
????padding-right: 0.25rem;
????.orderList__price {
????font-size: 0.875rem;
????vertical-align: 0.0625rem;
????margin-left: 0.625rem;
.orderList__price::before {
????content: '\A5';
????margin-right: 0.0625rem;
.orderList__commentContainer {
????.orderList__star--light {
????color: #E9203D;
????border-radius: 0.5rem;
textarea {
????height: 4rem;
????margin-top: 0.2rem;
????padding: 0.25rem 0.5rem;
????font-size: 0.75rem;
????color: #999999;
.orderList__btn {
????width: 5rem;
????border: 0;
.orderList__btn--red {
.orderList__btn--grey {
????background-color: #999999;
舉報
以訂單列表為案例,講授React項目的開發流程
1 回答樣式沒有智能提示,className屬性的樣式如何解決智能提示
2 回答請問樣式文件有源碼嗎?
1 回答文件格式化的快捷鍵是什么
1 回答vue的vux怎樣設計,才能像你這里的redux一樣
2 回答格式化文件 已經安裝插件了 但是按哪個快捷鍵使用呀?
Copyright ? 2025 imooc.com All Rights Reserved | 京ICP備12003892號-11 京公網安備11010802030151號
購課補貼聯系客服咨詢優惠詳情
慕課網APP您的移動學習伙伴
掃描二維碼關注慕課網微信公眾號
2020-01-20
.header {
????background-color: #E9203D;
????color: #FFFFFF;
????height: 2rem;
????text-align: center;
????font-size: 1rem;
????line-height: 2rem;
????position: fixed;
????top: 0;
????width: 100%;
}
.order {
????height: 100%;
????overflow: scroll;
}
.orderList {
????display: block;
????padding: 2.2rem 0.5rem 0.2rem 0.5rem;
????.orderList__picContainer {
????padding-right: 0.625rem;
????display: inline-block;
????.orderList__pic {
????width: 5.625rem;
????height: 5.625rem;
????}
}
.orderList__content {
????display: inline-block;
????width: calc(100% - 6.25rem);
????line-height: 1.75rem;
????.orderList__product {
????max-width: 15rem;
????font-size: 1rem;
????font-weight: 700;
????color: #111111;
????padding-right: 0.5rem;
????box-sizing: border-box;
????overflow: hidden;
????text-overflow: ellipsis;
????white-space: nowrap;
}
.orderList__shop {
????overflow: hidden;
????text-overflow: ellipsis;
????white-space: nowrap;
????font-size: 0.8125rem;
????color: #777777;
????padding: 0.5625rem 0.8125rem ?0;
????}
.orderList__detail {
????display: flex;
????justify-content: space-between;
????height: 1.375rem;
????line-height: 1.375rem;
????padding-right: 0.25rem;
????.orderList__price {
????font-size: 0.875rem;
????color: #777777;
????vertical-align: 0.0625rem;
????margin-left: 0.625rem;
}
.orderList__price::before {
????content: '\A5';
????margin-right: 0.0625rem;
}
}
}
.orderList__commentContainer {
????.orderList__star--light {
????color: #E9203D;
????border-radius: 0.5rem;
}
textarea {
????width: 100%;
????height: 4rem;
????margin-top: 0.2rem;
????padding: 0.25rem 0.5rem;
????font-size: 0.75rem;
????color: #999999;
}
}
.orderList__btn {
????width: 5rem;
????height: 1.375rem;
????text-align: center;
????color: #FFFFFF;
????border: 0;
????font-size: 0.875rem;
}
.orderList__btn--red {
????background-color: #E9203D;
}
.orderList__btn--grey {
????background-color: #999999;
}
}