小编Zeo*_*kat的帖子

最大宽度不适用于IE 11

我是一个非常新的设计师,并创建了我自己的WordPress主题,它在FireFox,Chrome和Opera上按预期工作.问题来自InternetExplorer(我使用Windows 7和IE 11).

似乎InternetExplorer 11不了解max-width CSS.我有这个CSS:

.vi-container {
    margin: 0 auto;
    position: relative;
    width: 100%;
}

.vi-content {
    margin: 0 auto;
    max-width: 1200px;
    overflow: hidden;
}
Run Code Online (Sandbox Code Playgroud)

HTMl代码类似于:

<div class="vi-container">
    <header class="vi-header">Header stuff</header>
    <main class="vi-content" itemtype="http://schema.org/Blog" itemprop="mainContentOfPage" itemscope="" role="main">
        <article class="post-content-wrap" itemtype="http://schema.org/BlogPosting" itemprop="blogPost" itemscope=""></article>
        <!-- more articles with contents -->
        <aside class="vi-sidebar" itemtype="http://schema.org/WPSideBar" itemscope="" role="complementary"></aside>
    </main>
</div>
Run Code Online (Sandbox Code Playgroud)

InternetExplorer完全忽略了最大宽度1200px.您可以在IE中和其他浏览器中实时加载我的网页进行比较.例如:http://www.vozidea.com/limpia-la-base-de-datos-wordpress-con-wp-sweep

这里有一个例子JSfiddle:http://jsfiddle.net/z4s01yxz/

我在StackOverflow中发现了关于IE上最大宽度问题的其他文章,但无法通过自己实现修复,这就是我要求帮助的原因.希望有人能帮我一把,谢谢你提前.

实际问题是,在InternetExplorer中,网页会扩展以填充所有宽度,因为忽略了max-width.您可以查看此图片以查看差异:i.imgur.com/kGr8wk1.jpg

PS:抱歉我的英文不好.

html css internet-explorer

17
推荐指数
1
解决办法
3万
查看次数

如何使用CefSharp获取网页加载的资源

我看到类似的问题发布,没有答案.我是新使用CefSharp但我需要知道我是否可以获取网页加载的所有资源,例如图像,字体等.

关于如何实现这一点,官方文档似乎有点模糊.

更清楚的是,场景非常简单.当您使用CefSharp加载网页时,此网页包含图像,javascript文件,字体文件等资源.我只需要抓住所有这些资源来探索它们.

在此先感谢您的帮助,对不起我的英语.

c# cefsharp

3
推荐指数
1
解决办法
6160
查看次数

标签 统计

c# ×1

cefsharp ×1

css ×1

html ×1

internet-explorer ×1