这是我从IDE获得的错误:
错误:此时XHTML元素"a"上不允许属性"已选中".从第66行第1栏; 到第66行,第70栏
<a href="javascript:chooseStyle('none', 60)" checked="checked">Default style</a>
Run Code Online (Sandbox Code Playgroud)
http://www.dynamicdrive.com/dynamicindex9/stylesheetswitcher.htm
如何更改代码以获取正确的XHTML语法?
谢谢
我希望能够有一个容器元素,其中包含要在内容进行时重复和扩展的内容,但容器本身位于两个元素之间,其中注意容器元素在某些时候"停止".
您可以在以下位置查看设计:
http://www.noxinnovations.com/portfolio/charidimos/
我想要做的是让容器元素包含要设置为100%的内容.所以无论在没有设定尺寸的情况下它的大小总是正确的.
有任何想法吗?
DIV或TABLE?
这是前端开发人员的问题.您工作的大多数项目仍然需要无表设计,还是再次接受简单的表结构?如果是这样,桌子是否合适?数据?形式?
我记得,不到几年前,我的一位设计师朋友告诉我,我必须使用我的所有HTML/XHTML进行无桌操作.Everrrything表.那个DIV是要走的路.作为一名后端PHP/MySQL开发人员,我尝试用CakePHP项目或两个项目跳上乐队.我修改了大多数基本模板页面/结构,以便在CSS2中使用DIV.
现在我正在做更多的CodeIgniter工作......好吧,我现在正在使用包含大部分表单的表格.我和Divs有一些问题.表格结构更加结构化,使我的问题更少(IE6).这被认为是"糟糕的代码"吗?我正在为之工作的公司有一个隐瞒的形象.
谢谢,杰夫
编辑:请不要降级问题.这是一个非设计师需要做前端工作的合理问题.也许我应该问,"在XHTML/CSS2中使用表格哪里适合?"
我正在尝试在下面显示的XHTML文档中创建一个表(为了简洁起见,仅显示相关部分):
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.0//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-1.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head></head>
<body>
<table class="dataTable">
<tfoot><tr><td class="tableFooter" colspan="4"><span>© example.com</span></td></tr></tfoot>
<tbody>
<tr id = "firstRowHeader">
<th class="rowLabel">
<th class ="rowCol colHeader">ABC
<th class ="rowCol colHeader">CDE
<th class ="rowCol colHeader">EFG
<tr><td class ="rowCategory" colspan ="4">Foo
<tr><td class="rowLabel"
<td class ="rowCol cellDataDown">-0.01%
<td class ="rowCol cellDataNoChange">0.09%
<td class ="rowCol cellDataNoChange">717.79
<tr><td class="rowLabel"
<td class ="rowCol cellDataUp">0.00%
<td class ="rowCol cellDataNoChange">0.08%
<td class ="rowCol cellDataNoChange">1,032.02
<tr><td class="rowLabel"
<td class ="rowCol cellDataUp">-0.04%
<td class ="rowCol cellDataNoChange">0.03%
<td …Run Code Online (Sandbox Code Playgroud) 我现在想知道何时<p>在html文档中使用干净的文本(不包含在例如标签内).
我有一个输入fiels,我想要一些文本之前喜欢:
<p>Age:</p> <input type="text" name="age">
Run Code Online (Sandbox Code Playgroud)
但是如上所述使用p标签将导致两者之间的换行.但是,如果我省略了p标签,这个问题就不复存在了.
我的问题是,可以省略标签,以及解释为什么,
谢谢
如何在(x)HTML文件中写注释?刚用<!-- comment -->?它也是正确的吗<!-"-" comment "-"->?:?在代码中添加注释的任何其他方法?(因为有些编辑过滤<!-- -->评论).
我正在尝试使用background-image设置背景图片:url但它不起作用.
<!doctype html>
<html>
<head>
<title>MyTitle</title>
<style type="text/css">
body{
<!-- background-color:green; -->
background-image:url("background.jpg");
<!-- color:white; -->
}
</style>
</head>
<body>
</body>
</html>
Run Code Online (Sandbox Code Playgroud)
请帮助!!
虽然我多次访问过这个网站,但这是我的第一个问题.
经过几个小时的google-foo无济于事,我无法将我的样式表链接起来.
<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Strict//EN” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd”>
<html xmlns=”http://www.w3.org/1999/xhtml” lang=”en” xml:lang=”en”>
<head>
<title>Newb Development</title>
<link type=“text/css” rel="stylesheet" href=”\master.css” />
</head>
<body>
<img src="banner.gif" alt="NewbDev Logo" title="Newb Development" />
<h1>Welcome To NewbDev.com</h1>
<h2>Under Construction</h2>
<p>
As you can see, we are currently under construction. Upon completion
of the website you will be able to follow a fellow newb developer
on his journey to <em>programming masterification!</em>
</p>
</body>
Run Code Online (Sandbox Code Playgroud)
文件"master.css"位于同一目录中.我已经在计算机和服务器上尝试过它,我的样式不适用.我知道我没有在这里发布的样式表,但它没什么特别的,我很肯定样式表的内容不是问题.
请检查以下代码:
<?php
$d=2;
echo "the sum of the number is"."<sub>($d+1)</sub>";
?>
Run Code Online (Sandbox Code Playgroud)
它作为输出给出:
the sum of the number is <sub>(2+1)</sub>
理想情况下,我需要输出"the sum of the number is <sub>3</sub>".当我们不使用HTML标签时,它工作正常<sub>...
我怎样才能解决这个问题?
出于某种原因,我无法将警报框(作为测试添加)正确显示.该功能似乎根本不执行.你对我做错了什么有什么看法?
我的代码位于这里 btw w /结果.感谢您提前输入!
xhtml ×10
html ×6
css ×5
javascript ×3
php ×2
href ×1
html5 ×1
linker ×1
size ×1
validation ×1