Home >Web Front-end >HTML Tutorial >Please tell me how to write the CSS for this_html/css_WEB-ITnose
Hello everyone, there is something that is causing problems no matter how I change it. . Depressed
I want to change it to DIV CSS simplified code
I sincerely ask for advice
is an article list column,
Each horizontal row is composed of small icons (incon. gif) consists of three parts: article title and date.
<DIV STYLE='height: 21px;text-align: left;'><SPAN STYLE='width: 240px;padding-left: 8px;'><IMG SRC='Skins/incon.gif'> <A HREF='News.asp?Id=107 >今天的新闻第一条 </A></SPAN><SPAN STYLE='color:#999999;'>2012-08-02</A></SPAN></DIV><DIV CLASS='type-height2'></DIV><DIV STYLE='height: 21px;text-align: left;'><SPAN STYLE='width: 240px;padding-left: 8px;'><IMG SRC='Skins/incon.gif'><A HREF='News.asp?Id=106> 今天的新闻第二条 </A></SPAN><SPAN STYLE='color:#999999;'>2009-08-02</A></SPAN></DIV><DIV CLASS='type-height2'></DIV>.。。
<style>._div{height: 21px;text-align: left;}._span{width: 240px;padding-left: 8px;}._span_date{color:#999999;}</style><DIV class="_div"><SPAN class="_span"><IMG SRC='Skins/incon.gif'> <A HREF='News.asp?Id=107 >今天的新闻第一条 </A></SPAN><SPAN class="._span_date">2012-08-02</A></SPAN></DIV><DIV CLASS='type-height2'></DIV><DIV class="_div"><SPAN class="_span"><IMG SRC='Skins/incon.gif'><A HREF='News.asp?Id=106> 今天的新闻第二条 </A></SPAN><SPAN class="._span_date">2009-08-02</A></SPAN></DIV><DIV CLASS='type-height2'></DIV>.。。
HTML code
c9ccee2e6ea535a969eb3f532ad9fe89
._div{height: 21px;text-align: left;}
._span{width: 240px;padding-left: 8px;}
._span_date{color:#999999;}
531ac245ce3e4fe3d50054a55f265927
2031ff5837f50c7b37891f51e5cd24ba
3c3b422dcf03fecd268653e0f021a889