发布时间:2026-07-22 14:26:54 来源:辅助科技网 作者:安卓直装科技

安鹿分享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;}
本项修改的是文章标题