Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
calc() 関数を使用して、div を別の div の中央に配置します。Chrome、Firefox、Opera、IE でも問題なく動作しますが、Safari ではこの方法は機能しません。
JavaScript を固定せずに何か提案はありますか?
left: -webkit-calc(50% - 25px); left: -moz-calc(50% - 25px); left: calc(50% - 25px);