分享一下我正在用的美化样式
如下。我自我感觉非常好看,大家可以去试试。<br /><style><br />/*自定义网站字体开始*/<br />@font-face{font-family: "lovely";src: url("https://www.flweb.xyz/fileto/WebFont.woff2") format("woff2");font-display: swap;}<br />*{font-family: "lovely"}<br />/*自定义网站字体结束*/<br />/*自定义滚动条开始*/<br /> ::-webkit-scrollbar {<br /> width: 0.5rem;<br /> height: 0.5rem;<br />}<br /><br />::-webkit-scrollbar-thumb {<br /> border-radius: 0.125rem;<br /> -moz-border-radius: 0.125rem;<br /> -webkit-border-radius: 0.125rem;<br /> background-color: #c85863;<br />}<br /><br />::-webkit-scrollbar-track {<br /> background-color: #000000;<br />}<br />/*自定义滚动条结束*/<br />input#scbar_txt {<br /> width: 200px;<br /> transition: 0.4s;<br />}<br />input#scbar_txt:hover{<br /> width:400px;<br />}<br />/*自定义阅读进度条开始*/<br />#content_progress {<br /> /* Positioning */<br /> position: fixed;<br /> left: 0;<br /> top: 0;<br /> z-index: 1000;<br /> width: 100%;<br /> height: 5px;<br /> -webkit-appearance: none;<br /> -moz-appearance: none;<br /> appearance: none;<br /> border: none;<br /> background-color: transparent;<br /> color: #35a935;<br />}<br /><br />#content_progress::-webkit-progress-bar {<br /> background-color: transparent;<br />}<br /><br />#content_progress::-webkit-progress-value {<br /> background-color: #c85863;<br />}<br /><br />#content_progress::-moz-progress-bar {<br /> background-color: #c85863;<br />}<br />/*自定义阅读进度条结束*/<br />/*搜索框悬停上浮开始*/<br />input#scbar_txt:hover{opacity: 1;z-index: 99;border-radius: 20px;transform: translateY(-5px);box-shadow: 0 3px 20px rgba(0, 0, 0, .25);animation: index-link-active 1s cubic-bezier(0.315, 0.605, 0.375, 0.925) forwards;}<br />@keyframes index-link-active {<br /> 0%{transform: perspective(2000px) rotateX(0) rotateY(0) translateZ(0);}<br /> 16%{transform: perspective(2000px) rotateX(10deg) rotateY(5deg) translateZ(32px);}<br /> 100%{transform: perspective(2000px) rotateX(0) rotateY(0) translateZ(65px);}<br />}<br />/*搜索框上浮结束*/<br />/*搜索栏样式开始*/<br />input#scbar_txt {<br /> width: 200px;<br /> transition: 0.3s ease-in;<br /> border-radius: 5px 0px 0px 5px;<br />}<br />#scbar_type {border-radius: 0 5px 5px 0;}<br />input#scbar_txt:hover{<br /> width:400px;<br />}<br />/*搜索栏样式结束*/<br />/*背景修改开始*/<br />body {<br /> display: flex;<br /> flex-direction: column;<br /> justify-content: space-between;<br /> align-items: center;<br /> background: #c8e2fb;<br /> background-image: linear-gradient(45deg, #c8e2fb, #fbecd6);<br />}<br />/*背景修改结束*/<br />/*页面圆角开始*/<br />.cl ,.fl ,.bm{<br /> border-radius: 20px;<br />}<br />/*页面圆角结束*/<br /></style><br /><br />开始<em>, </em>结束<em>, </em>自定义<em>, </em>width<em>, </em>background-color 那个阅读进度条是要用其它代码配合的,单独使用无效 我的抄了不少。你也是() 代码放在哪里呢 <br />可以放在底部统计代码里面。 哈哈哈,写的时候注意多段适配啊 我的站点哈:https://www.sanweishu.cn/
頁:
[1]