可以在那些网站上找到吗 [英] is this okay to find on ones site

查看:95
本文介绍了可以在那些网站上找到吗的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

<a href=""></a>


<div align="center">
  <table width="985" border="0" align="center">
    <tr>
      <th width="720" height="333" rowspan="6" scope="col">
      <img src="images/banner1.jpg" alt="test" name="pic1" width="720" height="333" border="0" id="pic1" /></th>
      <th height="86" scope="col"><img src="images/logo.jpg" alt="logo" width="260" height="141" /></th>
    </tr>
    <tr>
      <td><div align="center"><span class="style1">XXXXXXXXX</span></div></td>
    </tr>
    <tr>
      <td><div align="center"><span class="style1">XXXXXXXXX</span></div></td>
    </tr>
    <tr>
      <td><div align="center"><span class="style1">XXXXXXXXX</span></div></td>
    </tr>
    <tr>
      <td><div align="center"><span class="style1">XXXXXXXXX</span></div></td>
    </tr>
    <tr>
      <td height="52"><div align="center">
        <p class="style1">some more XXXXXXXXX XXXXXXXXXxxxxxxxx XXXXXXXXXxxxxxxxx</p>
      </div>

推荐答案

如果您要使用表,则由您自己决定.尽管html/css的纯粹主义者对此不满意,但是如果它适合您,那么我认为它没有任何问题.

如果您是说在页面末尾发现了额外的HTML,那么您的网站很有可能是基于Xss攻击的受害者.您可能想要研究一下.
If you mean the use of tables, it''s up to you. While html/Css purists frown upon it, if it suites you then I don''t see anything wrong with it.

If you mean you found extra HTML inserted at the end of your pages, then it''s quite possible that your website was the victim of an Xss based attack. You might want to look into it.


当然可以,但是您必须质疑以X的长字符串作为内容的用处.
Sure, it''s okay, but you have to question the usefulness of having long strings of X''s as content.


我不知道在这里讨论什么,但是编码风格非常糟糕,难以支持.您是否熟悉信噪比"的概念?
因此,对于此代码而言,它很低:很多噪声"却很少的信号".

td align="center"中的元素divspan都是完全冗余的. CSS和道德上过时的属性(如align)混合使用是不好的(如果使用CSS,请指定对齐方式).信号只是td,其中的所有标签都是噪声.

CSS样式必须为td编写;该元素有多种样式-为td添加了不同的类.这里span的样式没有意义,因为span本身是多余的.同时,缺少表的重要样式元素.
I don''t know what do discuss here, but the coding style is quite bad, hard to support. Are you familiar with the notion "signal-to-noise ratio"?
So for this code it is low: a lot of "noise" for a very little "signal".

The elements div and span inside td and align="center" are all completely redundant. Mix of CSS and morally obsolete attributes like align is bad (specify alignment if CSS). The signal is just td, all tags inside it are noise.

The CSS style must be written for td; it there are more than one style for this element -- added different classes for td. A style for span here makes no sense, because span itself is redundant. At the same time, important style element for a table are missing.


这篇关于可以在那些网站上找到吗的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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