CSS

body size

remove select default style

add placeholder for input[date]

disable text selection

iPhone tap highlight color

smooth scroll

not show scrollbar

disable 300ms delay

center a block

blur the image

css transation

remove the default shadow style of bootstrap

ellipsis

ellipsis the text after 3lines

iPhone Safari minimal-ui

prevent event

create toggle

http://www.w3schools.com/howto/howto_css_switch.asp

width auto fit

flex

change radio to button

center image

right align overflow text

Blurry downscaled images in Chrome

Image ratio error on safari

Resize image(keep ratio) by max-width will work on Chrome. However, it will still using image original height on some browser, such as Safari.

Percentage ratio layout

https://www.zhangxinxu.com/wordpress/2017/08/css-percent-padding-image-layout/

© Jiyu Shao 2018 - 2025