zoukankan      html  css  js  c++  java
  • jsp中的警告:Attribute (cellpadding) is obsolete. Its use is discouraged in HTML5 documents.

    Attribute (width) is obsolete. Its use is discouraged in HTML5 documents.
    属性(宽度)已过时。 在HTML5文档中不鼓励使用它。
    Attribute (cellpadding) is obsolete. Its use is discouraged in HTML5 documents.
    属性(单元格内文字与边框的距离)已过时。 在HTML5文档中不鼓励使用它。

    HTML5 不支持<table> cellpadding属性。请使用 CSS 代替。
    cellpadding 属性规定单元边沿与单元内容之间的空间,以像素计。

    这不是错误,只是警告,不影响题主写的页面执行的。
    原因是 HTML5 已经废弃了,如下:

    <div width="500px"></div>

    这种直接把 width、height、cellpadding 等之类的样式属性直接写在 HTML 标签里的做法,而是需要统一写在 style 里(或者定义CSS中),如下:

    <div style=" 500px;"></div>
  • 相关阅读:
    前端开发Code Review内容【vue记录】
    Blue Jeans
    Arbitrage
    Common Subsequence
    Palindrome
    Stockbroker Grapevine
    Asteroids
    Frogger
    All in All
    Highways
  • 原文地址:https://www.cnblogs.com/chenmingjun/p/9946161.html
Copyright © 2011-2022 走看看