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

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

    评论

报告相同问题?

悬赏问题

  • ¥50 易语言把MYSQL数据库中的数据添加至组合框
  • ¥20 求数据集和代码#有偿答复
  • ¥15 关于下拉菜单选项关联的问题
  • ¥20 java-OJ-健康体检
  • ¥15 rs485的上拉下拉,不会对a-b<-200mv有影响吗,就是接受时,对判断逻辑0有影响吗
  • ¥15 使用phpstudy在云服务器上搭建个人网站
  • ¥15 应该如何判断含间隙的曲柄摇杆机构,轴与轴承是否发生了碰撞?
  • ¥15 vue3+express部署到nginx
  • ¥20 搭建pt1000三线制高精度测温电路
  • ¥15 使用Jdk8自带的算法,和Jdk11自带的加密结果会一样吗,不一样的话有什么解决方案,Jdk不能升级的情况