The ::-webkit-scrollbar CSS pseudo-element(僞元素) affects the style of the scrollbar of an elementcss
&.show-pushdown { overflow-x:scroll; &::-webkit-scrollbar { width:8px; height:10px; background:#aaa; } &::-webkit-scrollbar-thumb { background:#000; } }
蘋果的滾動條是觸摸效果是反的。html
https://developer.mozilla.org/en-US/docs/Web/CSS/::-webkit-scrollbarhtml5
input { -webkit-appearance: none; /* Gecko內核 */ -moz-appearance: none;/* WebKit/Blink 瀏覽器內核 */ }
http://cn.ft.com/m/marketing/estate_20171123.htmlweb
有時候會須要修改input的placeholder樣式chrome
爲這四個屬性設置樣式便可:瀏覽器
::-webkit-input-placeholder { /* WebKit browsers */ color: red; } :-moz-placeholder { /* Mozilla Firefox 4 to 18 */ color: red; } ::-moz-placeholder { /* Mozilla Firefox 19+ */ color: red; } :-ms-input-placeholder { /* Internet Explorer 10+ */ color: red; }
https://stackoverflow.com/questions/2610497/change-an-html5-inputs-placeholder-color-with-cssapp
Chrome最小限制font-size爲12px。再小的字體也都是12px。ide
其餘瀏覽器如Firefox無此問題。字體
http://blog.csdn.net/freshlover/article/details/9746821.net
Chrome瀏覽器下使用video元素會自動出現下載標誌,但通常不想讓用戶下載視頻。
添加這三個樣式:
video::-internal-media-controls-download-button { display:none; } video::-webkit-media-controls-enclosure { overflow:hidden; } video::-webkit-media-controls-panel { width: calc(100% + 30px); }