- UID
- 372754
- 帖子
- 339
- 精华
- 0
- 贡献
- 0
- 推广
- 0
- 有效BUG
- 0
- 注册时间
- 2013-8-9
|
5#
发表于 2016-4-26 20:55
| 只看该作者
:not([class*="icon"]):not(i)是对付webfont,符号标志不渲染,不这样写淘宝天猫页面上经常会出现各种乱码!
另外附上个人用的css,卡饭收集的- @charset "utf-8";
- /* Name:全局强制雅黑*/
- /*强制雅黑并修正淘宝显示*/
- /*三行分别是字体粗细(整百数字),字体样式,字体阴影*/
- *{font-weight:100!important;}
- *:not([class*="icon"]):not([class*="mui-amount"]):not([class*="chaoshi"]):not([class*="top-nav"]):not([href*="ju.taobao.com"]):not([class*="Icon"]):not([class*="prev"]):not([class*="next"]):not([class*="pay-"]):not([class*="tm-shop-list-"]):not(b):not(ins):not(i):not(s){font-family:"Microsoft YaHei"!important;}
- *{text-shadow: silver 0px 0px 1px ! important;}
- /*滚动条*/
- ::-webkit-scrollbar{width: 6px;height: 6px;}
- ::-webkit-scrollbar-track-piece{background-color: #CCCCCC;-webkit-border-radius: 6px;}
- ::-webkit-scrollbar-thumb:vertical{height: 5px;background-color: #999999;-webkit-border-radius: 6px;}
- ::-webkit-scrollbar-thumb:horizontal{width: 5px;background-color: #CCCCCC;-webkit-border-radius: 6px;}
- ::-webkit-scrollbar {width: 9px;height: 9px;}
- ::-webkit-scrollbar-track-piece {background-color: transparent;}
- ::-webkit-scrollbar-thumb {background-color: #3994EF;border-radius: 3px;}
- ::-webkit-scrollbar-thumb:hover {background-color: #A4EEF0;}
- ::-webkit-scrollbar-thumb:active {background-color: #666;}
- ::-webkit-scrollbar-button:vertical { width: 9px; }
- ::-webkit-scrollbar-button:horizontal { width: 9px; }
- ::-webkit-scrollbar-button:vertical:start:decrement { background-color: white; }
- ::-webkit-scrollbar-button:vertical:end:increment { background-color: white; }
- ::-webkit-scrollbar-button:horizontal:start:decrement { background-color: white; }
- ::-webkit-scrollbar-button:horizontal:end:increment { background-color: white; }
- body::-webkit-scrollbar-track-piece {background-color: white;}
- /*指向图片绿光*/
- img:hover{box-shadow: 0px 0px 4px 4px rgba(130,190,10,0.6) !important;-webkit-transition-property: box-shadow;-webkit-transition-duration: .31s;}
- img{-webkit-transition-property: box-shadow;-webkit-transition-duration: .31s;}
- /*输入框美化*/
- input { border:#ccc 1px solid; border-radius: 6px; -webkit-border-radius: 6px;}
- input[type="text"]:focus, input[type="password"]:focus, textarea:focus {border: 2px solid #6FA1D9 !important;-webkit-box-shadow:0px 0px 5px #6FA1D9 !important;outline:none}
- input[type="checkbox"]:focus,input[type="submit"]:focus,input[type="reset"]:focus, input[type="radio"]:focus {border: 1px solid #6FA1D9 !important; outline:none}
- input:focus, select:focus, textarea:focus {outline: 1px solid #10bae0 ;-webkit-outline-radius: 3px ;}
- body a:hover:active {color: #10bae0;}
- body a:focus {outline-offset: 0px ;}
- body button:focus,
- body textarea:focus, body button:focus, body select:focus, body input:focus {outline-offset: -1px !important;}
- /*淡蓝色样式*/
- a{-webkit-transition: all 0.3s ease-out;}
- a:hover{color: #39F !important;text-shadow:-5px 3px 18px #39F !important;-webkit-transition: all 0.3s ease-out;}
- *::-webkit-selection {background: #333333 !important; color: #00FF00 !important; }
- /*去除下划线*/
- *{text-decoration:none!important}
- a:hover{text-decoration:none!important}
- a{
- /*color: #014A8F;*/
- -webkit-transition-property:color;
- -webkit-transition-duration: 0.0s;
- }
- /*指向文字加粗*/
- a:hover {
- /*color: #0000FF ;*/
- -webkit-transition-property:color;
- -webkit-transition-duration: 0.0s;
- font-weight:bold
- }
复制代码 |
|