Caster_Saber 2015-02-01 13:48 采纳率: 0%
浏览 1912

关于html内嵌样式表的问题

 <html>
<head>
<title>这是标题</title>
<link rel="stylesheet" type="text/css" href="css.css">
**<style type="text/css">
.right{text-align:right}
</style>**
</head>
<body>
<h1><font color="red">一级标题</font></h1>
<a href="http://www.baidu.com" target="_blank">点此跳转链接</a><br><br><br>
<!--<table border="1" align="center" width="80%">
<tr color="green">
<th>第一行第一列</th>
<td align="center"><B>hh</B></td>
</tr>
<tr>
<td color="red">第二行</td>
</tr>
</table>

<link rel="stylesheet" type="text/css" href="css.css">-->
<form>
username:<input type="text" value="wangluo" class="right"><br>
password:<input type="password">
<br>
复选框:复选1<input type="checkbox">
        复选2<input type="checkbox">
        复选3<input type="checkbox"><br>
单选框: 男<input type="radio" name="gender">
         女<input type="radio" name="gender">
         其他<input type="radio" name="gender"><br>
<p class="right">这是一个段落</p> 
学历:<select>
       <option>小学</option>
       <option>大学</option>
       <option>中专</option>
      </select><br>
评论:<textarea>
  </textarea><br><br>
文件上传:<input type="file">    
<input type="submit" value="提交">&nbsp;&nbsp;
<input type="reset" value="重置">

<input type="button" value="这是一个普通的按钮" onclick="javascript:alert('你上当了!=。=');"><br><br><br><br><br><br>
</form>
</body>
</html>

我标记出来的那里内嵌样式表,不知道为何起不了作用, 我的这个内容和css.css文件是处于同一目录下的

  • 写回答

2条回答 默认 最新

  • 梨花IP异常 2015-02-01 18:00
    关注

    你能不能发个源码啊。这样根本没法看啊

    评论

报告相同问题?

悬赏问题

  • ¥100 求数学坐标画圆以及直线的算法
  • ¥100 c语言,请帮蒟蒻写一个题的范例作参考
  • ¥15 名为“Product”的列已属于此 DataTable
  • ¥15 安卓adb backup备份应用数据失败
  • ¥15 eclipse运行项目时遇到的问题
  • ¥15 关于#c##的问题:最近需要用CAT工具Trados进行一些开发
  • ¥15 南大pa1 小游戏没有界面,并且报了如下错误,尝试过换显卡驱动,但是好像不行
  • ¥15 自己瞎改改,结果现在又运行不了了
  • ¥15 链式存储应该如何解决
  • ¥15 没有证书,nginx怎么反向代理到只能接受https的公网网站