问题标签 [display]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
javascript - jQuery fullPage: All images loading at same time
I use jQuery fullPage on my website, and everything looks just fine. The problem I'm having is that all images are loaded at "same time" making the website's load to be around 23Mb!!!
I tried reading fullPage's documentation, but couldn't make images load like "lazy load" or something.
All of them are loaded as a background:
Do you have any clue so I can load images as needed and not all at the same time?
php - 如何让用户能够查看和更改其帐户中的信息?
您将如何使用户能够检查保存在数据库中的帐户信息并对其进行编辑?假设用户点击他们的帐户信息页面,它会显示如下内容:
用户名 [abc]
电子邮件:[aba@aba.abc]
年龄:[20]
[保存按钮]
当用户加载页面时,他们将能够从数据库中查看那些指定字段的信息。但是,所有这些信息都将在可重新输入和保存的可编辑字段中。
那么我该怎么做呢?这在 PHP 中会是什么样子?我不知道如何将数据库中的数据显示到页面上,我想我会这样做。此外,这些数据(显示在页面上)是否需要像创建帐户时一样进行清理?
java - 使用 hashmap 在 JTextField 中显示数据并更新
下面是创建分别具有代号名称、价格和数量的项目的代码。
这是一个不同的类,它是我的 gui 的一部分,如下所示:http: //imgur.com/Jhc4CAz
我的想法是你输入一个项目的代码,例如。22 然后输入您想添加到库存中的数量,例如 5 您单击添加,这样它就会添加到变量中,但会立即更新框中的文本,如您在屏幕上看到的那样。
我真的对 hashmap / list 感到困惑我认为将所有数据从 hashmap 复制到 list 并几乎将其相乘,必须有更好的方法来实现这一点。
}
html - 如何使用 HTML 显示来自文件服务器的图像
我有一个显示大量消息和图像的网站,通常通过普通的 HTML 标记。我们现在有一个文件服务器,我们希望它成为我们检索文件和图像的一站式场所。
我可以创建允许我从服务器下载文件的链接,但无论如何我都找不到在网页上显示图像的方法。
为了更清楚一点,我们的网页是通过我们称为 SERVER1 的服务器运行的,我们过去只是从该服务器检索我们的文件。现在我们仍在通过 SERVER1 运行网站,但希望显示来自名为 FILESERVER 的不同服务器的图像。
http://SERVER1/imagedocs/image.jpg 之类的链接 曾经可以工作,但
http://FILESERVER/imagedocs/image.jpg不起作用
尽管
file://FILESERVER/imagedocs/image.jpg 确实有效,但我相信这是因为我与服务器有本地连接,如果我将其应用于网站将无法正常工作。
关于我应该寻找什么作为解决方案的任何线索。
php - 使用 WooCommerce 的 shorcode 后销售产品的奇怪级联视图
我在使用 woocommerce 插件正确显示 wordpress 中的销售产品列表时遇到问题。
当我想使用 [sale_products per_page="12"] 短代码时,我的产品以奇怪的方式显示。
谁能知道这里有什么问题?
你可以在这里看到这个问题的示例页面:http ://www.modecode.pl/atlantic/about/
php - How to display posts categories as classes
Seems that I am just too stupid to achieve this. Seems so simple, yet… I created a template and try to display a custom portfolio (registered by a custom post plugIn) This works fine with the following code:
but I can’t get to work the commented out code part and display the categories inside the class tag of my container element (for each post displayed in the loop).
I actually found also this concept:
https://lorelle.wordpress.com/2007/09/06/using-wordpress-categories-to-style-posts
which seemed to be exactly what I need but sadly this didn’t work at all for me. (placed the function inside functions.php on my child theme and theme both without any result)
What I am misunderstanding here? Can someone show me the correct code I have to use? Would be so awesome. Thanks in advance!
EDIT
So this finally brings me on the right way:
I missed the “echo” thing inside my div. Now I will have to find the way to display all categories of my post instead of only the first.
EDIT 2:
javascript - 显示两个变量的平均值
我无法显示用户为挑战所做的每轮平均点击次数。当我进入控制台时,我能够计算平均数字,但我似乎无法弄清楚如何让它显示。
JFiddle: https ://jsfiddle.net/tglas/tkL4p8on/5/
我的 CSS:
和 JS:
我知道我可能在这里遗漏了一些基本的东西,但我是编程新手,希望能帮助我弄清楚这个概念。
image - 如何在 Scilab 中显示几个带有图片的窗口?
我正在使用imshow()
Scilab 中的功能。我可以展示一张图片。但是,如何显示一些带有图形的窗口。
python - Python - 如何在字体渲染命令中使用变量?
新的python程序员在这里。我在我的代码中添加了一些东西,以便用户能够跟踪他们的分数,但我不确定我应该为这一部分做什么。这是我的代码的一些部分:
我想要做的是在屏幕上显示文本“还剩 15 个敌人”,这样我就可以将它合并到我的游戏中,但我无法让它工作。
提前感谢您的帮助。