简体   繁体   English

W3 CSS 仅响应移动视图

[英]W3 CSS Responsive to Only Mobile View

I am creating a website .我正在创建一个网站 I went to bed at 4 am this morning, and my website, html, and stylesheets were all set with no problems.我今天早上 4 点睡觉,我的网站 html 和样式表都设置好了,没有问题。 I looked at my website an hour ago, and no matter what the screen size is, my website will only appear in the Mobile view, vertically stacked w3-containers.一个小时前我查看了我的网站,无论屏幕大小,我的网站只会出现在 Mobile 视图中,垂直堆叠的 w3-containers。 It is almost like somebody went into my html files and erased every w3-row tag.这几乎就像有人进入了我的 html 文件并删除了每个 w3 行标签。

This website has been my life for the past 6 months, so I am panicking.在过去的 6 个月里,这个网站一直是我的生活,所以我很恐慌。 Please help me.请帮我。 I am not from this profession, so please take it easy on me, and avoid the condescending heckling, however tempting it may be.我不是这个行业的,所以请放轻松,避免居高临下的质问,无论它多么诱人。

Thanks, Nina谢谢,尼娜

I figured out what happened.我弄清楚发生了什么。 It is really bizarre.这真的很奇怪。 I am not sure how this happened.我不确定这是怎么发生的。 I would love to know.我愿意知道。

My html was linked to the w3 stylesheet by using their web link, and next on the list, I linked to my own stylesheet through my aws S3.我的 html 使用他们的 web 链接链接到 w3 样式表,接下来,我通过我的 aws S3 链接到我自己的样式表。 (My style sheet should have overrode w3's.) (我的样式表应该覆盖 w3 的。)

After screwing around with different ideas, just for the hell of it, I downloaded w3's actual stylesheet and uploaded it to my aws S3 account.在考虑了不同的想法之后,我下载了 w3 的实际样式表并将其上传到我的 aws S3 帐户。 Then I linked the w3 stylesheet with a link from my own domain and listed it first in the head.然后,我将 w3 样式表与我自己域中的链接链接起来,并将其列在头中。 Then I copied and pasted my own style sheet into a new document and uploaded that and linked.然后我将自己的样式表复制并粘贴到一个新文档中,然后上传并链接。

Voila.瞧。 Everything is good and well with the world.世界上的一切都很好。

So how and why did this happen within a 4 hour period?那么这是如何以及为什么会在 4 小时内发生的呢?

Cheers, Nina干杯,尼娜

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM