Home >Web Front-end >HTML Tutorial >Examples of using Li tags in HTML_HTML/Xhtml_Web page production

Examples of using Li tags in HTML_HTML/Xhtml_Web page production

WBOY
WBOYOriginal
2016-05-16 16:36:221895browse

I hope that the title will be aligned to the left and the date will be aligned to the right. When adding float:right directly to the span of the date, both IE8 and FF will be OK, but IE6/7 will wrap the line. Here is a simple and effective solution way.

XML/HTML CodeCopy content to clipboard
  1. >    
  2. <html xmlns="http://www.w3.org/1999/xhtml">    
  3. <head>  
  4.    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />  
  5.    <title>title>  
  6. <style>