缩小div的内容而不是DIV本身. [英] Zoom out content of a div not the DIV itself.

查看:350
本文介绍了缩小div的内容而不是DIV本身.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有人知道是否有可能像浏览器缩小页面一样缩小div的内容吗?

Does any one know if it is possible to zoom out the contents of a div much like browser zooms out a page?

我正在创建一个加载并分页到div中的应用程序.但是,我希望能够在没有滚动条的情况下加载内容.这意味着必须将div内部的内容而不是实际div缩小.我知道可以用图像来完成,但是可以用HTML内容来完成.如果是这样,那么您是否有使用jquery或其他任何示例的例子.

I am creating an application that loads and page into a div. However, I would like to be able to load the content without scroll bars. This would mean that the content inside of the the div not the actual div would have to be zoomed out. I know that this could be done with an image but can it be done with HTML content. If so do you have any examples using jquery or anything else for that matter.

推荐答案

要做的最简单的方法是使用<iframe>,并且scroll设置为none.

Easiest way to do what you're trying to do would be to use <iframe> with scroll set to none.

将他人的数据(如果您无权使用)解析为您自己的格式,则视为侵犯了版权.

Parsing someone else's data (if you don't have the rights to it) into your own formatting has been deemed copyright infringement.

这篇关于缩小div的内容而不是DIV本身.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆