Home >Backend Development >PHP Tutorial >CSS 不起作用,该怎么解决

CSS 不起作用,该怎么解决

WBOY
WBOYOriginal
2016-06-13 10:20:02855browse

CSS 不起作用
有些css不起作用,难道是跟php有关?
php部分:

PHP code
<!--Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->if($auth==true){    echo "<tr>";    echo "<td class="block_link" id="block_link">
<div style="width:100%; overflow:hidden; text-align:left; font-size:8.5pt;">You have</div>
<div style="width:100%; overflow:hidden; text-align:right; font-size:27.5pt;">\$$credit</div>
</td>";    echo "<td class="block_link"><a href="user_center.php">Start Order</a></td>";    echo "<td class="block_link"><a href="user_center.php">View Order</a></td>";    echo "<td class="block_link"><a href="user_cp.php">Edit Profile</a></td>";    echo "<td class="block_link"><a href="user_cp.php">Change Password</a></td>";    echo "<td class="block_link"><a href="recharge.php">Recharge My Account</a></td>";    echo "<td class="block_link"><a href="logout.php">Logout</a></td>";    echo "</tr>";}

CSS部分
CSS code
<!--Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->.block_link a{    width:120px;    height:50px;    display: block;    background-color:#f1f1f1;    text-align:center;    font-size:10.5pt;    text_decoration:none; //去链接下划线不起作用    padding-top:30px;}.block_link a:link, block_link a:visited  //这里的a:visited 也不起作用{    background-color: #f1f1f1;    text_decoration:none; //去链接下划线不起作用    color:#009EDD;}.block_link a:hover{    background-color: #009EDD;    text_decoration:none; //去链接下划线不起作用    color:#ffffff;}#block_link{    background-color:#d34836;    color:#ffffff;    width:120px;}


这到底是怎么回事?

------解决方案--------------------
text-decoration
不是 _
------解决方案--------------------
text-decoration:none;
你的呢?
text_decoration:none;

不要把罪过都推给 php
说实在的,php 已经承担了太多的压力了
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn