内容设置为固定长度 [英] Content Set To Fixed Length

查看:61
本文介绍了内容设置为固定长度的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的内容里面有很多div和表格..我的意思是它们是标记(HTML)..bu ti必须以缩小的格式显示它们..需要调整大小它..我该如何实现呢??

例如,我尝试将其粘贴到邮件的邮件部分中


键盘快捷键表
来自维基百科,免费的百科全书
在计算中,键盘快捷键是计算机键盘上的击键序列或组合,可在软件中调用命令.
一些键盘快捷键要求用户一个接一个地按下一个键或一系列键.其他键盘快捷键需要同时按住几个键.键盘快捷方式可能取决于键盘布局(本地化).
内容[隐藏]
1键盘快捷键的比较
1.1常规快捷方式
1.1.1导航
1.1.2电源管理
1.1.3截图
1.2文字编辑
1.2.1文本格式
1.3浏览器/转到菜单
1.3.1 Web浏览器
1.3.2标签管理
1.4窗口管理
1.5用户界面导航(小部件和控件)
1.6命令行快捷方式
1.7辅助功能
2另请参见
3参考文献
4个外部链接
[edit]键盘快捷键的比较

主条目:键盘快捷键
键盘快捷键是大多数现代操作系统和相关软件应用程序的常见方面.它们的使用非常普遍,以至于某些用户认为它们是与计算机进行日常交互的基本要素.无论是个人喜好还是自适应技术,通用约定的普遍性使得可以比较不同系统上的键盘快捷键.以下各节详细介绍了在广泛使用的操作系统中的一些比较.
[edit]常规快捷方式
有关KDE快捷方式的注意事项是可以对其进行更改,并且以下列表包含默认设置.
动作Windows Mac OS KDE/GNOME Emacs
激活当前应用程序的菜单栏Alt启用全键盘访问(系统偏好设置>键盘>全键盘访问>所有控件):[1] [2]
Ctrl + F2(或某些键盘上为Fn + Ctrl + F2)
KDE Meta +`中的Alt
文件菜单Alt + F Ctrl + F2,然后按F Alt + F Meta +`,然后按f
编辑菜单Alt + E Ctrl + F2,然后按E Alt + E Meta +`,然后按e
查看菜单Alt + V Ctrl + F2,然后按V Alt + V
撤消上一个操作Ctrl + Z⌘Cmd + Z Ctrl + Z Ctrl + x,然后u
或Ctrl +/
或Ctrl + _
或撤消
重做上一个操作Ctrl + Y⇧Shift +⌘Cmd + Z⇧Shift + Ctrl + Z与撤消相同,当撤消操作用尽时,将重做.撤消一次或多次撤消操作后,移动光标,然后进一步撤消操作将重新执行.
剪切所选区域并将其存储在剪贴板中Ctrl + X⌘Cmd + X Ctrl + X Ctrl + w
将所选区域复制到剪贴板Ctrl + C或Ctrl + Ins⌘Cmd + C Ctrl + C Meta + w或Ctrl + Ins
将剪贴板的内容粘贴到光标Ctrl + V或⇧Shift + Ins⌘Cmd + V Ctrl + V Ctrl + y或⇧Shift + Ins或
粘贴特殊的Ctrl + Alt + V Ctrl +⇧Shift + V Meta + y
在焦点控件或窗口中选择所有内容Ctrl + A⌘Cmd + A Ctrl + A Ctrl + x,然后选择h
在已安装的键盘语言之间切换⇧Shift + Alt⌘Cmd + Space
在键盘和鼠标首选项",键盘快捷方式"中配置所需的按键,在输入"菜单中选择下一个来源.[3]
通过KDE键盘Ctrl + Alt + K
GNOME中的Shift + Alt
Ctrl + \


但是,当我尝试在div中显示表格时,表格的宽度太大,以至于我的设计被破坏了.


因此,我需要在内容中查找div和表,并将它们的大小调整为(450 x 450)分辨率....

I have a content which has many div and tables inside it.. I mean they are tags (HTML).. Bu t i have to show them in a reduced format.. needs re sizing of it.. How can i achieve that???

For example i tried to paste this in my message part of mail


Table of keyboard shortcuts
From Wikipedia, the free encyclopedia
In computing, a keyboard shortcut is a sequence or combination of keystrokes on a computer keyboard which invokes commands in software.
Some keyboard shortcuts require the user to press a single key or a sequence of keys one after the other. Other keyboard shortcuts require pressing and holding several keys simultaneously. Keyboard shortcuts may depend on the keyboard layout (localisation).
Contents [hide]
1 Comparison of keyboard shortcuts
1.1 General shortcuts
1.1.1 Navigation
1.1.2 Power management
1.1.3 Screenshots
1.2 Text editing
1.2.1 Text formatting
1.3 Browsers / Go menu
1.3.1 Web browsers
1.3.2 Tab management
1.4 Window management
1.5 User interface navigation (widgets and controls)
1.6 Command line shortcuts
1.7 Accessibility
2 See also
3 References
4 External links
[edit]Comparison of keyboard shortcuts

Main article: Keyboard shortcut
Keyboard shortcuts are a common aspect of most modern operating systems and associated software applications. Their use is pervasive enough that some users consider them an essential element of their routine interactions with a computer. Whether used as a matter of personal preference or for adaptive technology, the pervasiveness of common conventions enables the comparison of keyboard shortcuts across different systems. The following sections detail some of these comparisons in widely used operating systems.
[edit]General shortcuts
A note regarding KDE''s shortcuts is that they can be changed and the below list contains the defaults.
Action Windows Mac OS KDE / GNOME Emacs
Activate current application''s Menu bar Alt With full keyboard access active (System Preferences > Keyboard > Full Keyboard Access > All Controls):[1][2]
Ctrl+F2 (or Fn+Ctrl+F2 on some keyboards)
Alt in KDE Meta+`
File menu Alt+F Ctrl+F2, then F Alt+F Meta+`, then f
Edit menu Alt+E Ctrl+F2, then E Alt+E Meta+`, then e
View menu Alt+V Ctrl+F2, then V Alt+V
Undo the last operation Ctrl+Z ⌘ Cmd+Z Ctrl+Z Ctrl+x, then u
or Ctrl+/
or Ctrl+_
or Undo
Redo the last operation Ctrl+Y ⇧ Shift+⌘ Cmd+Z ⇧ Shift+Ctrl+Z Same as undo, when undo is exhausted, it redoes. Move the cursor after one or more undos, and further undos will be redos.
Cut the selected area and store it in the clipboard Ctrl+X ⌘ Cmd+X Ctrl+X Ctrl+w
Copy the selected area into the clipboard Ctrl+C, or Ctrl+Ins ⌘ Cmd+C Ctrl+C Meta+w, or Ctrl+Ins
Paste contents of clipboard at cursor Ctrl+V, or ⇧ Shift+Ins ⌘ Cmd+V Ctrl+V Ctrl+y, or ⇧ Shift+Ins, or
Paste special Ctrl+Alt+V Ctrl+⇧ Shift+V Meta+y
Select everything in focused control or window Ctrl+A ⌘ Cmd+A Ctrl+A Ctrl+x, then h
Toggle among installed keyboard languages ⇧ Shift+Alt ⌘ Cmd+Space
Configure desired keypress in Keyboard and Mouse Preferences, Keyboard Shortcuts, Select the next source in Input menu.[3]
Ctrl+Alt+K via KDE Keyboard
⇧ Shift+Alt in GNOME
Ctrl+\


But when i try to display in div the table width is so large that my design get destroyed...


So i need to find div and tables inside the content and resize them to(450 x 450) resolution....

推荐答案

这是一个HTML和CSS问题,这是代码.
This is an HTML and CSS question, and here is the code.
* { margin:0; padding:0; }
TABLE { border-collapse:collapse; border-width:0px; }
TD DIV { width:450px; height:450px; overflow:hidden; }


<table>
  <tr>
    <td>
      <div>Hi! This is a big long string of text.</div>
    </td>
  <tr>
</table>


我只是给了通用标签名称,但是如果这破坏了您的设计,请重命名.
另外,您也可以使用代码滚动DIV的内容,只需确保调整宽度以适应将显示的滚动条,它们通常在16像素左右.


I just gave the generic tag names but if that breaks your design then rename.
Alternatively you can use the code to scroll the contents of the DIV, just make sure you adjust the width to account for the Scroll Bar that will show up, they are usually around 16px.

TD DIV { width:434px; height:450px; overflow:scroll; }


这篇关于内容设置为固定长度的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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