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
    关注

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

    评论

报告相同问题?

悬赏问题

  • ¥15 ads仿真结果在圆图上是怎么读数的
  • ¥20 Cotex M3的调试和程序执行方式是什么样的?
  • ¥20 java项目连接sqlserver时报ssl相关错误
  • ¥15 一道python难题3
  • ¥15 用matlab 设计一个不动点迭代法求解非线性方程组的代码
  • ¥15 牛顿斯科特系数表表示
  • ¥15 arduino 步进电机
  • ¥20 程序进入HardFault_Handler
  • ¥15 oracle集群安装出bug
  • ¥15 关于#python#的问题:自动化测试