LoginSignup
5

More than 5 years have passed since last update.

Monaca 開発メモ

Posted at

CSS必須項目と内容

body, html{
    height: 100%;
}

body {
    margin: 0; // 初期マージン殺し
    box-sizing: border-box; // スクロースするな
    height: 100%; // スクロースするな
    font-family: Robot, sans-serif; // フォント
    // -webkit-tap-highlight-color: rgba(0, 0, 0, 0) // 要素タッチした際の色 殺し
    -webkit-touch-callout:none; // ポップアップメニュー殺し
    -webkit-user-select:none; // 要素選択殺し 副作用あり
}

ハイブリッドアプリを作成するときにいつも書くようにしているCSSプロパティいくつか!

  • タッチしたときの色は殺したいがiPhoneのwebkitは擬似要素:activeが使えないので入れておかないとタッチがわからない

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
5