@font-faceに、font-display: swap;を書く。
@font-face {
font-family: ‘font’;
src: url(‘font.woff’) format(‘woff’);
font-display: swap;
}
Google Fontsの場合はパラメータを使用できます。
https://fonts.googleapis.com/css?family=Lato&display=swap
CSS 2019.5.12
@font-faceに、font-display: swap;を書く。
@font-face {
font-family: ‘font’;
src: url(‘font.woff’) format(‘woff’);
font-display: swap;
}
Google Fontsの場合はパラメータを使用できます。
https://fonts.googleapis.com/css?family=Lato&display=swap
CSS 2017.9.26
<script>
if(navigator.userAgent.match(/MSIE 10/i) || navigator.userAgent.match(/Trident\/7\./) || navigator.userAgent.match(/Edge\/12\./)) {
$('body').on("mousewheel", function () {
event.preventDefault();
var wd = event.wheelDelta;
var csp = window.pageYOffset;
window.scrollTo(0, csp - wd);
});
}
</script>
CSS 2017.1.18
50%は太さ、
rgbはカラー、#123abcのように書いてももちろんOK、
最後の0%はお約束でそのまま。
background: -webkit-linear-gradient(transparent 50%, rgb(253,236,237) 0%); background: -o-linear-gradient(transparent 50%, rgb(253,236,237) 0%); background: linear-gradient(transparent 50%, rgb(253,236,237) 0%);