HTML 如何在XHTML和HTML Strict中正确使用target =“_ blank”
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了HTML 如何在XHTML和HTML Strict中正确使用target =“_ blank”相关的知识,希望对你有一定的参考价值。
网页模板-HTML,CSS和JS准备开始编码(1KB 960px mod,Yahoo Reset,jQuery,XHTML str)
<!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"> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <style type="text/css"> /* Yahoo CSS Reset - Copyright (c) 2010, Yahoo! Inc. All rights reserved. Code licensed under the BSD License: http://developer.yahoo.com/yui/license.html version: 2.8.1 */ html{color:#000;background:#FFF;}body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,code,form,fieldset,legend,input,button,textarea,p,blockquote,th,td{margin:0;padding:0;}table{border-collapse:collapse;border-spacing:0;}fieldset,img{border:0;}address,caption,cite,code,dfn,em,strong,th,var,optgroup{font-style:inherit;font-weight:inherit;}del,ins{text-decoration:none;}li{list-style:none;}caption,th{text-align:left;}h1,h2,h3,h4,h5,h6{font-size:100%;font-weight:normal;}q:before,q:after{content:'';}abbr,acronym{border:0;font-variant:normal;}sup{vertical-align:baseline;}sub{vertical-align:baseline;}legend{color:#000;}input,button,textarea,select,optgroup,option{font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;}input,button,textarea,select{*font-size:100%;} /* 1KB grid - 12 columns, 60 pixels each, with 20 pixel gutter (960px) */ .g1{width:60px;}.g2{width:140px;}.g3{width:220px;}.g4{width:300px;}.g5{width:380px;}.g6{width:460px;}.g7{width:540px;}.g8{width:620px;}.g9{width:700px;}.g10{width:780px;}.g11{width:860px;}.g12{width:940px;}.g1,.g2,.g3,.g4,.g5,.g6,.g7,.g8,.g9,.g10,.g11,.g12{overflow:hidden;float:left;display:inline;margin:0 10px;}.row{width:960px;overflow:hidden;margin:0 auto;}.row .row{width:auto;display:inline-block;margin:0 -10px;} /* Common styling */ .center {text-align:center} .right {text-align:right} .left {text-align:left} .fright {float:right} .fleft {float:left} strong,.strong {font-weight:900} em,.em {background:#FF9} small,.small {font-size:.7em} /* Style sheet - */ body {} #navtop {} #navtop div ul li {display:inline} #header {} #header div h1 {} #nav {} #nav div ul li {display:inline} #content {} #sidebar-one {} #sidebar-two {} #main {} #footer {} #footer div {} div {outline:1px solid #069 /* this is for debugging */} </style> </head> <body> <div id="navtop" class="row"> <div class="g12"> <ul class="right"> </ul> </div> </div> <div id="header" class="row"> <div class="g12"> </div> </div> <div id="nav" class="row"> <div class="g12"> <ul> </ul> </div> </div> <div id="content" class="row"> <div id="sidebar-one" class="g3"> </div> <div id="main" class="g6"> </div> <div id="sidebar-two" class="g3"> </div> </div> <div id="footer" class="row"> <div class="g12"> </div> </div> <script type="text/javascript"> $(document).ready(function() { /* jQuery magic here */ }); </script> </body> </html>
以上是关于HTML 如何在XHTML和HTML Strict中正确使用target =“_ blank”的主要内容,如果未能解决你的问题,请参考以下文章
网页模板-HTML,CSS和JS准备开始编码(1KB 960px mod,Yahoo Reset,jQuery,XHTML str)