https でレイアウト崩れる
-
ロリポップアカウントで作成したサイトを別のアカウントに移動したら、CSSが正業が利かず乱れています。
https://ookubotest.lolipop.jp/car/
これがテストサーバーで
移したのが、
https://www.tiffanyasakusa.com/
WordPress 6.3 (オリジナルテーマ) PHP 7,4
スマホとPCと分岐して表示を分けています。
CSSが効いていない状況です。
同じく
https://ookubotest.lolipop.jp/test
これがテストサーバーで
移したのが、
WordPress 6.3 (オリジナルテーマ) PHP 8.2 モジュール
こちらはPCのスライダーが機能しないという点です。
http://www.rakushow1005.com/ だと正常に映ります。Nivoスライダーを使っています。
head にCSS分岐のコードを書いています。
<script> (function(){ var _UA = navigator.userAgent; if (_UA.indexOf('iPhone') > 0 || _UA.indexOf('iPod') > 0 || _UA.indexOf('Android') > 0) { document.write('<link href="https://www.tiffanyasakusa.com/wp-content/themes/sample/style2.css" type="text/css" rel="stylesheet"/>'); document.write('<meta name="viewport" content="width=device-width, target-densitydpi=device-dpi, initial-scale=1.0, minimum-scale=1.0, user-scalable=yes">\n'); }else{ document.write('<link href="https://www.tiffanyasakusa.com/wp-content/themes/sample/style.css" type="text/css" rel="stylesheet"/>'); } })(); </script>
解決方法を教えてください。
2件の返信を表示中 - 1 - 2件目 (全2件中)
2件の返信を表示中 - 1 - 2件目 (全2件中)
- トピック「https でレイアウト崩れる」には新たに返信することはできません。