HTML按钮不使用Dreamweaver在live中响应CSS

时间:2017-06-07 18:36:32

标签: html css dreamweaver

大家好,我的HMTL问题和分配给它的CSS无法正常工作。按钮工作,它会链接,但CSS不会影响它。 我使用Dreamweaver CC并且在设计视图中看起来CSS似乎正在工作但是一旦我在浏览器上查看它它恢复到其原始状态我将提供一些代码和实时视图的图片以向您展示我的内容意思。

我的HTML

<a href="methandrailhome.html" class="returnhome">Return Home</a><!-- end .returnhome -->

我的CSS

#form .returnhome {

    -moz-box-shadow:inset -4px 2px 0px -13px #ffffff;
    -webkit-box-shadow:inset -4px 2px 0px -13px #ffffff;
    box-shadow:inset -4px 2px 0px -13px #ffffff;
    background:-webkit-gradient( linear, left top, left bottom, color-stop(0.05, #f9f9f9), color-stop(1, #e9e9e9) );
    background:-moz-linear-gradient( center top, #f9f9f9 5%, #e9e9e9 100% );
    filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#f9f9f9', endColorstr='#e9e9e9');
    background-color:#f9f9f9;
    -webkit-border-top-left-radius:0px;
    -moz-border-radius-topleft:0px;
    border-top-left-radius:0px;
    -webkit-border-top-right-radius:0px;
    -moz-border-radius-topright:0px;
    border-top-right-radius:0px;
    -webkit-border-bottom-right-radius:0px;
    -moz-border-radius-bottomright:0px;
    border-bottom-right-radius:0px;
    -webkit-border-bottom-left-radius:0px;
    -moz-border-radius-bottomleft:0px;
    border-bottom-left-radius:0px;
    text-indent:-1.9px;
    border:2px solid #dcdcdc;
    display:inline-block;
    color:#666666;
    font-family:Arial;
    font-size:13px;
    font-weight:bold;
    font-style:normal;
    height:40px;
    line-height:40px;
    width:95px;
    text-decoration:none;
    text-align:center;
    text-shadow:0px 0px 0px #ffffff;
}

&#13;
&#13;
    .returnhome {
    	
    	-moz-box-shadow:inset -4px 2px 0px -13px #ffffff;
    	-webkit-box-shadow:inset -4px 2px 0px -13px #ffffff;
    	box-shadow:inset -4px 2px 0px -13px #ffffff;
    	background:-webkit-gradient( linear, left top, left bottom, color-stop(0.05, #f9f9f9), color-stop(1, #e9e9e9) );
    	background:-moz-linear-gradient( center top, #f9f9f9 5%, #e9e9e9 100% );
    	filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#f9f9f9', endColorstr='#e9e9e9');
    	background-color:#f9f9f9;
    	-webkit-border-top-left-radius:0px;
    	-moz-border-radius-topleft:0px;
    	border-top-left-radius:0px;
    	-webkit-border-top-right-radius:0px;
    	-moz-border-radius-topright:0px;
    	border-top-right-radius:0px;
    	-webkit-border-bottom-right-radius:0px;
    	-moz-border-radius-bottomright:0px;
    	border-bottom-right-radius:0px;
    	-webkit-border-bottom-left-radius:0px;
    	-moz-border-radius-bottomleft:0px;
    	border-bottom-left-radius:0px;
    	text-indent:-1.9px;
    	border:2px solid #dcdcdc;
    	display:inline-block;
    	color:#666666;
    	font-family:Arial;
    	font-size:13px;
    	font-weight:bold;
    	font-style:normal;
    	height:40px;
    	line-height:40px;
    	width:95px;
    	text-decoration:none;
    	text-align:center;
    	text-shadow:0px 0px 0px #ffffff;
    }
&#13;
<a href="#" class="returnhome">Return Home</a>
&#13;
&#13;
&#13;

Here is what live view from Dreamwweaver is showing

1 个答案:

答案 0 :(得分:0)

取出#form

.returnhome {
  -moz-box-shadow: inset -4px 2px 0px -13px #ffffff;
  -webkit-box-shadow: inset -4px 2px 0px -13px #ffffff;
  box-shadow: inset -4px 2px 0px -13px #ffffff;
  background: -webkit-gradient( linear, left top, left bottom, color-stop(0.05, #f9f9f9), color-stop(1, #e9e9e9));
  background: -moz-linear-gradient( center top, #f9f9f9 5%, #e9e9e9 100%);
  filter: progid: DXImageTransform.Microsoft.gradient(startColorstr='#f9f9f9', endColorstr='#e9e9e9');
  background-color: #f9f9f9;
  -webkit-border-top-left-radius: 0px;
  -moz-border-radius-topleft: 0px;
  border-top-left-radius: 0px;
  -webkit-border-top-right-radius: 0px;
  -moz-border-radius-topright: 0px;
  border-top-right-radius: 0px;
  -webkit-border-bottom-right-radius: 0px;
  -moz-border-radius-bottomright: 0px;
  border-bottom-right-radius: 0px;
  -webkit-border-bottom-left-radius: 0px;
  -moz-border-radius-bottomleft: 0px;
  border-bottom-left-radius: 0px;
  text-indent: -1.9px;
  border: 2px solid #dcdcdc;
  display: inline-block;
  color: #666666;
  font-family: Arial;
  font-size: 13px;
  font-weight: bold;
  font-style: normal;
  height: 40px;
  line-height: 40px;
  width: 95px;
  text-decoration: none;
  text-align: center;
  text-shadow: 0px 0px 0px #ffffff;
}
<a href="methandrailhome.html" class="returnhome">Return Home</a>