快速擁有一款高大上的后現(xiàn)代樣式主題(兩步搞定)

使用無遠開發(fā)平臺開發(fā)應用,可以完全自主掌握樣式。

》演示地址《

效果截圖

image

image

image

image

實現(xiàn)方法

第一步 創(chuàng)建并上傳樣式文件,并在首頁中引入該樣式文件

  • 本地創(chuàng)建 css 文件,命名為 my-style.css,并貼入以下內(nèi)容:
body[theme=base] .bg-mask,body[theme=base] .page-tab-container li.selected {
  background: #e4e7e8;
  color: #000;
}
.ui-state-active, .ui-widget-content .ui-state-active {
  background: #007aff;
  border-color: #007aff;
}
.ui-widget-overlay{
  background: #111; opacity: 0.15;
}
.zwindow {
  box-shadow: 3px 2px 5px #999;
}
.zwindow-header {
  border-radius: 0 !important;
}
.zwindow-body {
  border-radius: 0 !important;
}
.zwindow-bar {
  border-radius: 0 !important;
}
#header {
  box-shadow: 0px 1px 5px #666;
  border-bottom: none;
  z-index: 1;
}
#header .path label.ui-state-active {
  opacity: 1;
}
#navigator {
  border-right: none;
  box-shadow: 1px 1px 5px #666;
}
#navigator.ui-state-default {
  background: #111;
  border-color: #e4e7e8;
}
#navigator ul.en-menu li.selected>a {
  border-right: none;
}
#navigator.ui-state-default a {
  color: #999;
}
#navigator .ui-state-hover {
  background: #111;
  border-color: #111;
}
#navigator .ui-state-hover a {
  color: #ccc;
}
#navigator .ui-state-active {
  background: #007aff;
}
#navigator .ui-state-active a {
  color: #fff;
}
#bottom {
  bottom:0;
}
.ui-state-error, .ui-widget-content .ui-state-error  {
  background-color: #FF3B30;
  border: solid 1px #FF3B30;
  color: #fff;
}
.ui-state-error a, .ui-widget-content .ui-state-error a {
  color: #fff;
}
.ui-state-highlight, .ui-widget-content .ui-state-highlight, .ui-widget-header .ui-state-highlight {
  border: 1px solid #ffc200;
  background: #ffc200;
  color: #fff;
}
  • 在工作臺全局配置-靜態(tài)資源上傳上述樣式文件
  • 在工作臺全局配置-前端-首頁訪問-引入靜態(tài)資源-PC端,添加文件 my-style.css

第二步 工作臺全局配置-前端-主頁設(shè)置

  • 皮膚設(shè)置為: base
  • 頁面內(nèi)邊距PC端,上下左右各設(shè)置為 12

如果懂 CSS,完全可以按照自己的想法修改第一步中的樣式文件,達到自己希望的效果。

其他參考:如何讓界面更漂亮

?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時請結(jié)合常識與多方信息審慎甄別。
平臺聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點,簡書系信息發(fā)布平臺,僅提供信息存儲服務。

相關(guān)閱讀更多精彩內(nèi)容

友情鏈接更多精彩內(nèi)容