HTML DOCTYPE和元素 [英] HTML DOCTYPE and elements
本文介绍了HTML DOCTYPE和元素的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
你好!
我有一个与< doctype>相关的问题.问题是我有一个导航栏,这是它的CSS:
Hello!
I have a problem related to the <doctype>. The problem is that I have a navigation bar, here''s its CSS:
#nav {
margin:0;
padding:0 7;
background:#FEFFFF url(tti.png) top left no-repeat;
float:left;
width:1000;
border:2px solid #42432d;
border-width:0px 0;
}
#nav li {
display:inline;
padding:0;
margin:0;
}
#nav a:link,
#nav a:visited {
color:#000;
background:#64E3F7 url(lb.png);
padding:11px 20px 12px 20px;
float:left;
width:auto;
border-right:0px solid #FEFFFF;
border-image:url("lb.png");
text-decoration:none;
font:bold 1em/1em Calibri, Trebuchet MS, sans-serif;
}
#nav li:first-child a {
background:url(l1.png);
border-top-left-radius:25px;
border-bottom-left-radius:25px;
}
#nav a:hover,
#nav a:focus {
background:#BDF4FC url(nva.png);
}
#nav a:active {
background:#004CFF;
color:#fff;
}
</style>
当我指定DOCTYPE时,导航栏将无法正常工作.出现的问题是,条的宽度仅直到其最后一个
- 或菜单.不会显示整个背景.当我删除DOCTYPE规范时,它的效果很好.但是删除DOCTYPE的问题是,如果删除DOCTYPE,页面的某些元素将无法在IE中工作.这些元素包括一个滑块和一个新闻滚动器.您可以看一下该页面,您将了解所有内容.网址: http://mypmail.x10.bz/012/sample/ [
When I specify the DOCTYPE, the navigation bar does not works properly. The problem that occurs with it is that the bar''s width is only till its last- or menu. It''s full background is not displayed. When I remove the DOCTYPE specification, its works perfect. But the problem with removing the DOCTYPE is that if I remove it, some elements of the page wont work in IE. Those elements include a slider and a news scroller. You can have a look at the page and you''ll understand everything. The URL:http://mypmail.x10.bz/012/sample/[^]
The radius property of the search button is also not working.
Any ideas?
Thanks
推荐答案
请将所有页面内容放入form标记内.尝试将主div设置为"cse-branding-bottom"在表单标签中.
根据您提供的链接,该页面的结构不够好.
请浏览以下链接以更好地理解.
ASP.NET网页代码模型
ASP.NET/检查页面结构
如果我误解了您的问题,请随时纠正我.
希望以上信息对您有所帮助.如果您还有其他顾虑,请告诉我.Please put all of your page content inside the form tag.try putting your main div "cse-branding-bottom" within form tag.
According to your provide link the page is not well structured.
Please navigate the following links for better understanding.
ASP.NET Web Page Code Model
ASP.NET/Examining The Page Structure
If i misunderstand your question, please feel free to correct me.
I hope the above information will be helpful. If you have more concerns, please let me know.
这篇关于HTML DOCTYPE和元素的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
- or menu. It''s full background is not displayed. When I remove the DOCTYPE specification, its works perfect. But the problem with removing the DOCTYPE is that if I remove it, some elements of the page wont work in IE. Those elements include a slider and a news scroller. You can have a look at the page and you''ll understand everything. The URL:http://mypmail.x10.bz/012/sample/[^]
查看全文