
安鹿分享Handsome主題的主自定美化代碼,涵蓋多項視覺優化 :首頁文章版式圓角化 、题美停特圖片懸停放大 、化全化悬頭像轉動放大及自動旋轉 、攻略標題居中、圆角义文明重启外挂钢枪视频陰影效果,效滚王牌战争卡网科技還包括自定義滾動條樣式、动条鼠標點擊特效和評論框特效 。主自定
所有修改通過後台自定義CSS或編輯主題文件實現 ,题美停特代碼簡潔易操作,化全化悬可晉升網站美觀度與交互體驗,攻略適合WordPress站長參考。圆角义
本項修改的效滚星际文明类的科幻小说是首頁文章版式,包括圖片使其四個角由方形變成圓角形狀。动条將以下代碼增補至後台主題設置 自定義CSS
<span class="hljs-selector-class">.panel</span>{<span class="hljs-attribute">border</span>: none;<span class="hljs-attribute">border-radius</span>: <span class="hljs-number">15px</span>;}<span class="hljs-selector-class">.panel-small</span>{<span class="hljs-attribute">border</span>: none;<span class="hljs-attribute">border-radius</span>: <span class="hljs-number">15px</span>;}<span class="hljs-selector-class">.item-thumb</span>{<span class="hljs-attribute">border-radius</span>: <span class="hljs-number">15px</span>;}.panel{ border: none; border-radius: 15px;}.panel-small{ border: none; border-radius: 15px;}.item-thumb{ border-radius: 15px; }.panel{ border: none; border-radius: 15px;}.panel-small{ border: none; border-radius: 15px;}.item-thumb{ border-radius: 15px; }
本項修改的主自定是首頁文章圖片,將鼠標放到首頁頭圖後使其放大
。將以下代碼增補至後台主題設置 自定義CSS。末日之城活动顺序表
<span class="hljs-selector-class">.item-thumb</span>{<span class="hljs-attribute">cursor</span>: pointer;<span class="hljs-attribute">transition</span>: all <span class="hljs-number">0.6s</span>;}<span class="hljs-selector-class">.item-thumb</span><span class="hljs-selector-pseudo">:hover</span>{<span class="hljs-attribute">transform</span>: <span class="hljs-built_in">scale</span>(<span class="hljs-number">1.05</span>);}<span class="hljs-selector-class">.item-thumb-small</span>{<span class="hljs-attribute">cursor</span>: pointer;<span class="hljs-attribute">transition</span>: all <span class="hljs-number">0.6s</span>;}<span class="hljs-selector-class">.item-thumb-small</span><span class="hljs-selector-pseudo">:hover</span>{<span class="hljs-attribute">transform</span>: <span class="hljs-built_in">scale</span>(<span class="hljs-number">1.05</span>);}.item-thumb{ cursor: pointer; transition: all 0.6s; }.item-thumb:hover{ transform: scale(1.05); }.item-thumb-small{ cursor: pointer; transition: all 0.6s;}.item-thumb-small:hover{ transform: scale(1.05);}.item-thumb{ cursor: pointer; transition: all 0.6s; }.item-thumb:hover{ transform: scale(1.05); }.item-thumb-small{ cursor: pointer; transition: all 0.6s;}.item-thumb-small:hover{ transform: scale(1.05);}
本項修改的是首頁頭像,將鼠標放至頭像後使其轉動並放大。將以下代碼增補至後台主題設置 自定義CSS
<span class="hljs-selector-class">.thumb-lg</span>{<span class="hljs-attribute">width</span>:<span class="hljs-number">130px</span>;}<span class="hljs-selector-class">.avatar</span>{-webkit-<span class="hljs-attribute">transition</span>: <span class="hljs-number">0.4s</span>;-webkit-<span class="hljs-attribute">transition</span>: -webkit-transform <span class="hljs-number">0.4s</span> ease-out;<span class="hljs-attribute">transition</span>: transform <span class="hljs-number">0.4s</span> ease-out;-moz-<span class="hljs-attribute">transition</span>: -moz-transform <span class="hljs-number">0.4s</span> ease-out;}<span class="hljs-selector-class">.avatar</span><span class="hljs-selector-pseudo">:hover</span>{<span class="hljs-attribute">transform</span>: <span class="hljs-built_in">rotateZ</span>(<span class="hljs-number">360deg</span>);-webkit-<span class="hljs-attribute">transform</span>: <span class="hljs-built_in">rotateZ</span>(<span class="hljs-number">360deg</span>);-moz-<span class="hljs-attribute">transform</span>: <span class="hljs-built_in">rotateZ</span>(<span class="hljs-number">360deg</span>);}<span class="hljs-selector-id">#aside-userspan.avatar{<span class="hljs-attribute">animation-timing-function</span>:<span class="hljs-built_in">cubic-bezier</span>(<span class="hljs-number">0</span>,<span class="hljs-number">0</span>,.<span class="hljs-number">07</span>,<span class="hljs-number">1</span>)<span class="hljs-meta">!important</span>;<span class="hljs-attribute">border</span>:<span class="hljs-number">0</span> solid}<span class="hljs-selector-id">#aside-userspan.avatar:hover{<span class="hljs-attribute">transform</span>:<span class="hljs-built_in">rotate</span>(<span class="hljs-number">360deg</span>)<span class="hljs-built_in">scale</span>(<span class="hljs-number">1.2</span>);<span class="hljs-attribute">border-width</span>:<span class="hljs-number">5px</span>;<span class="hljs-attribute">animation</span>:avatar .<span class="hljs-number">5s</span>}.thumb-lg{ width:130px;}.avatar{ -webkit-transition: 0.4s; -webkit-transition: -webkit-transform 0.4s ease-out; transition: transform 0.4s ease-out; -moz-transition: -moz-transform 0.4s ease-out; }.avatar:hover{ transform: rotateZ(360deg); -webkit-transform: rotateZ(360deg); -moz-transform: rotateZ(360deg);}#aside-userspan.avatar{ animation-timing-function:cubic-bezier(0,0,.07,1); border:0 solid}#aside-userspan.avatar:hover{ transform:rotate(360deg) scale(1.2); border-width:5px; animation:avatar .5s}.thumb-lg{ width:130px;}.avatar{ -webkit-transition: 0.4s; -webkit-transition: -webkit-transform 0.4s ease-out; transition: transform 0.4s ease-out; -moz-transition: -moz-transform 0.4s ease-out; }.avatar:hover{ transform: rotateZ(360deg); -webkit-transform: rotateZ(360deg); -moz-transform: rotateZ(360deg);}#aside-userspan.avatar{ animation-timing-function:cubic-bezier(0,0,.07,1)!important; border:0 solid}#aside-userspan.avatar:hover{ transform:rotate(360deg) scale(1.2); border-width:5px; animation:avatar .5s}
本項修改的是首頁頭像 ,效果就是热血细胞破解版將首頁頭像放大,並使其自動旋轉。將以下代碼增補至後台主題設置 自定義CSS
<span class="hljs-selector-class">.thumb-lg</span>{<span class="hljs-attribute">width</span>:<span class="hljs-number">130px</span>;}<span class="hljs-keyword">@-webkit-keyframes</span> rotation{<span class="hljs-selector-tag">from</span>{-webkit-<span class="hljs-attribute">transform</span>: <span class="hljs-built_in">rotate</span>(<span class="hljs-number">0deg</span>);}<span class="hljs-selector-tag">to</span>{-webkit-<span class="hljs-attribute">transform</span>: <span class="hljs-built_in">rotate</span>(<span class="hljs-number">360deg</span>);}}<span class="hljs-selector-class">.img-full</span>{-webkit-<span class="hljs-attribute">transform</span>: <span class="hljs-built_in">rotate</span>(<span class="hljs-number">360deg</span>);<span class="hljs-attribute">animation</span>: rotation <span class="hljs-number">3s</span> linear infinite;-moz-<span class="hljs-attribute">animation</span>: rotation <span class="hljs-number">3s</span> linear infinite;-webkit-<span class="hljs-attribute">animation</span>: rotation <span class="hljs-number">3s</span> linear infinite;-o-<span class="hljs-attribute">animation</span>: rotation <span class="hljs-number">3s</span> linear infinite;}.thumb-lg{ width:130px;}@-webkit-keyframes rotation{ from { -webkit-transform: rotate(0deg); } to { -webkit-transform: rotate(360deg); }}.img-full{ -webkit-transform: rotate(360deg); animation: rotation 3s linear infinite; -moz-animation: rotation 3s linear infinite; -webkit-animation: rotation 3s linear infinite; -o-animation: rotation 3s linear infinite;}.thumb-lg{ width:130px;}@-webkit-keyframes rotation{ from { -webkit-transform: rotate(0deg); } to { -webkit-transform: rotate(360deg); }}.img-full{ -webkit-transform: rotate(360deg); animation: rotation 3s linear infinite; -moz-animation: rotation 3s linear infinite; -webkit-animation: rotation 3s linear infinite; -o-animation: rotation 3s linear infinite;}
本項修改的是文章標題,使其居中