I was working on a bug ticket the other day where it was reported that an icon was sitting low in a button. Just not aligned like it should be. I had to go on a little journey to figure out how to replicate it before I could fix it. Lemme set the scene.
Here’s the screenshot:
But I go to look at the button on my machine, and it looks perfectly fine:
What the heck, right? Same platform (macOS), same browser (Firefox), same version, everything. Other people on the team looked too, and it was fine for them.
Then a discovery! (Thanks, Klare.)
It only showed up that way on her low-resolution external monitor. I don’t know if “low” is fair, but it’s not the “retina” of a MacBook Pro, whatever that is.
My problem is I don’t even have a monitor anymore that isn’t high resolution. So how I can test this? Maybe I just… can’t? Nope! I can! Check it out. I can “Get Info” on the Firefox app on my machine, and check this box:
Now I can literally see the bug. It is unique to Firefox as far as I can tell. Perhaps something to do with pixel… rounding? I have no idea. Here’s a reduced test case of the HTML/CSS at play though.
The solution? Rather than using an inline-block display type for buttons, we moved to inline-flex, which feels like the correct display type for buttons because of how good flexbox is at centering.
.button { /* a million things so that all buttons are perfect and... */ display: inline-flex; align-items: center; }
以上が低解像度モードでバグを修正しますの詳細内容です。詳細については、PHP 中国語 Web サイトの他の関連記事を参照してください。

私は先週、プログレッシブウェブアプリに関するJason Grigsbyの新しい本を読んでいますが、それはエキサイティングです。ジェイソンは、PWAとは何か、そしてそれらがどのように機能するかを説明します

CSSは、すべてのWebサイトにデザインを提供するものです。ウェブサイトはそれなしではあまり楽しくてフレンドリーではありません! JavaScriptなしで1週間行く人について読んだことがあります

私のパートナーと私は8年間デザインと開発会議会社を経営していました。その間、私たちは何百時間もの会議を制作しました。

Jacob Schatz(@jakecodes)はGitlabのスタッフエンジニアであり、技術的なポジションと彼の就職面接をどのように行うかを共有するのに十分親切でした。

イベントは、ユーザーがどこかにクリックし、キーボードとのリンクに焦点を合わせ、テキストをフォームで変更すると応答するために使用されます。私が最初に学習を始めたとき

ジャムスタックスタイルのサイト(使用中のサーバー側の言語はありません)を揺らしていると言いましょうが、メールを送信するようなダイナミックなことをしたいと思います。ではありません


ホットAIツール

Undresser.AI Undress
リアルなヌード写真を作成する AI 搭載アプリ

AI Clothes Remover
写真から衣服を削除するオンライン AI ツール。

Undress AI Tool
脱衣画像を無料で

Clothoff.io
AI衣類リムーバー

Video Face Swap
完全無料の AI 顔交換ツールを使用して、あらゆるビデオの顔を簡単に交換できます。

人気の記事

ホットツール

MantisBT
Mantis は、製品の欠陥追跡を支援するために設計された、導入が簡単な Web ベースの欠陥追跡ツールです。 PHP、MySQL、Web サーバーが必要です。デモおよびホスティング サービスをチェックしてください。

SAP NetWeaver Server Adapter for Eclipse
Eclipse を SAP NetWeaver アプリケーション サーバーと統合します。

MinGW - Minimalist GNU for Windows
このプロジェクトは osdn.net/projects/mingw に移行中です。引き続きそこでフォローしていただけます。 MinGW: GNU Compiler Collection (GCC) のネイティブ Windows ポートであり、ネイティブ Windows アプリケーションを構築するための自由に配布可能なインポート ライブラリとヘッダー ファイルであり、C99 機能をサポートする MSVC ランタイムの拡張機能が含まれています。すべての MinGW ソフトウェアは 64 ビット Windows プラットフォームで実行できます。

PhpStorm Mac バージョン
最新(2018.2.1)のプロフェッショナル向けPHP統合開発ツール

VSCode Windows 64 ビットのダウンロード
Microsoft によって発売された無料で強力な IDE エディター
