隐藏标签 [英] To hide a tag

查看:77
本文介绍了隐藏标签的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好


我想在屏幕上显示时隐藏标签,我想在打印时显示标签

页面。


我试试:


< td style =" display:none">





< div style =" display:none">


< td>< / div> ;


但< tdis总是显示,它也在屏幕上工作


我该怎么办?


祝你好运,并提前感谢

解决方案

Scripsit Paolo:

< blockquote class =post_quotes>
> @media screen {.print-only {display:none;问题解决了吗?



不!



您没有正确应用建议。


要获得更具体的信息,请输入更具体的信息<你尝试过的是
。这意味着告诉我们URL。


除非他们向我们展示URL,否则发现人们的错误通常会适得其反。有时它是可能的,但它会告诉他们(和其他人的坏习惯)。那么在我们拥有

网址之前,我的不道德是不道德的吗?也许,但今天我觉得有点坏人......


我尝试申请你写的但是结果是隐藏内容

的第二个< tdand不仅仅是< tdtag



什么?你真的试图隐藏_tags_而不是隐藏元素吗? (

混乱是常见的,但在这个帖子中已经是正确的。请

在你理解这一点之前进行纠正。)什么是第二个

< td>"与< td>标签相反?


我想把我的桌子显示在屏幕上的一个列中并且

分成两列打印页面只打印一页。



听起来很奇怪。我想知道真正的用例是什么。


我在这里写了一个小样本



URL,please 。


< style>



使用有效标记。此外,使用

exlplicit结束标记关闭所有与表相关的元素以避免浏览器错误。


-

Jukka K. Korpela(Yucca)
http://www.cs .tut.fi / ~jkorpela /


" Jukka K. Korpela"

写道


URL,请。



抱歉,但是


我还没有把网页放在网上是因为它是因为它现在还没有w /

现在还是


>


>什么?


>你真的想隐藏_tags_而不是隐藏元素吗? (



混淆是常见的,但在这个帖子中已经是正确的。请

在你理解这一点之前进行纠正。)


你想用这句话告诉我什么?


我不明白这个


>你真的试图隐藏_tags_而不是隐藏元素吗?




这不是一些吗?


请尽量帮我提供一些样品


谢谢


Paolo vertrouwde ons:


" Jukka K. Korpela

写了



[snipped]


>什么?你真的试图隐藏_tags_而不是隐藏元素吗?



这不是一些吗?

请尽量帮我一点点样品


谢谢



如果您不知道* tag *和* element *

之间的区别,现在是时候让您阅读了关于HTML标记。


这是一个标签:< td>


这是一个元素:< td> content< / td>


祝你好运。


-

Rob


Hi at all

I''ld want to hide a tag during display on screen and I want to show the tag
when I print the page.

I try:

<td style="display:none">

or

<div style="display:none">

<td></div>

but the <tdis always displayed and it work also on screen

How can I do please?

Best regards and thank you in advance

解决方案

Scripsit Paolo:

>@media screen { .print-only { display: none; } }

Problem solved?


NO!

You didn''t apply the advice properly.

To get more specific information, enter more specific information of
what you tried. This means telling us the URL.

It''s generally counter-productive to spot people''s errors unless they
show us the URL. Sometimes it is possible, but it will teach them (and
others) bad habits. So is it immoral for me continue before we have the
URL? Maybe, but I feel a bit bad guy today...

I try to apply that you wrote but the result is to hide the content
of the second <tdand not only the <tdtag

What? Are you really trying to hide _tags_ and not elements? (The
confusion is common, but it was already correct in this thread. Please
stand corrected until you understand the point.) And what is "the second
<td>" as opposite to "the <td>tag"?

I''ld wanted to display my tables into a single column on screen and
into two columns printing the page to have printed one page only.

Sounds strange. I wonder what the real use case is.

I wrote here a little sample

URL, please.

<style>

Use valid markup. Moreover, close all table-related elements with
exlplicit end tags to avoid browser bugs.

--
Jukka K. Korpela ("Yucca")
http://www.cs.tut.fi/~jkorpela/


"Jukka K. Korpela"
wrote

URL, please.

sorry but

I have not put online the page because is php and because it do not wark
still now

>

>What?

>Are you really trying to hide _tags_ and not elements? (The

confusion is common, but it was already correct in this thread. Please
stand corrected until you understand the point.)

What want you tell me with this phrase?

I do not understand fine this

>Are you really trying to hide _tags_ and not elements?



It is not the some?

please try to help me with a little sample

Thank you


Paolo vertrouwde ons toe:

"Jukka K. Korpela"
wrote

[snipped]

>What? Are you really trying to hide _tags_ and not elements?


It is not the some?
please try to help me with a little sample

Thank you

If you do not know the difference between *tag* and *element*
it is time for you to read up on HTML-mark up.

This is a tag: <td>

This is an element: <td>content</td>

Good luck.

--
Rob


这篇关于隐藏标签的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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