Giter Site home page Giter Site logo

portfolio-websites's Introduction

Top Languages Card

portfolio-websites's People

Contributors

kataokanagi avatar

Watchers

 avatar

portfolio-websites's Issues

Youtubeの幅がmain-containerからはみ出す

いつ

ページが狭くなったとき。
特に、スマートフォンで閲覧したとき。

なぜ

Youtubeのiframeのサイズが固定幅であるため。

試行錯誤

多くの記事で紹介されていた、autoの横幅から比率で縦幅を決定する方法を採用。この場合、横幅が広くなりすぎてしまう。width: n%;で横幅を減らせるが、**揃えができない。

align="centor"やmargin-width: auto; margin-height: auto;、text-align:centorを試したが、**揃えはできなかった。親要素のposition:relative,position:absoluteやinline-blockなどが関わってきそうだが、長くなりそうなので中断した。

参考文献

あなたのブログの動画はスマートフォンではみ出してるかもしれない
CSSで**寄せする9つの方法(縦・横にセンタリング)

トップ画像のSafariへの対応

症状

Safariでトップ画像(top-page.cssのfuji-sunrise.JPG)が適切に表示されない
(拡大され過ぎて?真っ白になる)

原因

使用しているbackground-attachment: fixed;はSafariに対応していない。

試行錯誤の失敗

「iOSでbackground-attachment:fixedが表示されない不具合の解決方法」 のコードを引用し、header-containeのz-indexを-100、bodyのz-indexを0に設定したが、bodyのクリーム色のbackgroundがトップ画像の下に回ってしまう

その他参考

「スマホで『background-attachment: fixed』が効かないときの解決法」

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.