英文:
HTML tags in java Eclipse
问题
使用Eclipse/java。一些标签已过时。例如,u,required
找不到如何交换和消除黄色警告
<h1 align="center">欢迎<span style="color:red"> <%=user1 %>访问网站</span></h1>
<hr>
<h2 align="left"><u>介绍:</u></h2>
<h3 style="color:green"><%=intro %></h3>
<hr>
<h2 align="left"><u>爱好:</u></h2>
<h3 style="color:green"><%=hobby %></h3>
英文:
Using Eclipse/java. Some tags obsolete. For example, u, required
Can't find how to exchange and take rid of yellow warnings
<h1 align="center">Welcome<span style="color:red" > <%=user1 %>to the website</span></h1>
<hr>
<h2 align="left"><u>INTRODUCTION :</u></h2>
<h3 style="color:green"><%=intro %></h3>
<hr>
<h2 align="left"><u>HOBBIES : </u></h2>
<h3 style="color:green"><%=hobby %></h3>
答案1
得分: 1
你试图让你的HTML执行CSS设计的任务。你的JSP构建它认为HTML将呈现的外观,并将其转发给用户。因此,用户永远不会看到JSP,只会看到一个HTML页面。因此,当你使用特殊标签时,它们是在服务器上执行并转发给用户。
弃用
https://stackoverflow.com/questions/14551305/align-attribute-deprecated
对齐方式
https://www.w3schools.com/cssref/css3_pr_align-content.asp
英文:
Your trying to make your HTML do what CSS was designed to do. Your JSP builds what it thinks the HTML will look like and forwards that to the user. Thus the user never sees the JSP only an HTML page. So when you use the special tags they are done on the server and forwarded to the user.
Deprecation
https://stackoverflow.com/questions/14551305/align-attribute-deprecated
To align
https://www.w3schools.com/cssref/css3_pr_align-content.asp
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论