<!DOCTYPE html> <html> <head> <title>百度页面练习</title> <link rel="stylesheet" type="text/css" href="lianxi1.css"> <style type="text/css"> .zi{text-decoration: underline} .top1{text-align: right; word-spacing :200px; } .top2{ margin-right: 10em; </style> } </head> <body> <div class="top2"> <div class="top1"> <span class="zi">新闻</span> <span class="zi">Hao123</span> <span class="zi">地图</span> <span class="zi">视频</span> <span class="zi">贴吧</span> <span class="zi">登陆</span> <span class="zi">设置</span> </div> </div> </body> </html>
可以就可以啊
另存为UTF-8就好了
最好在文件开头指明文件编码。。。