JQuery UIボタンとしてリンクのスタイルを設定しようとすると、奇妙な問題が発生します。 Chromeのボタンとして表示され、FirefoxやIE8のリンクとして表示されます。JQuery UI FirefoxとIEのボタンとしてスタイリングしていないタグ
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<script type="text/javascript" src="script/jquery-1.4.2.js"></script>
<script type="text/javascript" src="script/jquery-ui-1.8.9.custom.min.js"></script>
<link rel="stylesheet" type="test/css" href="stylesheet/jquery-ui-1.8.9.custom.css">
<link rel="stylesheet" type="text/css" href="stylesheet/styles.css">
<script type="text/javascript">
$(document).ready(function(){
$("a").button();
});
</script>
<title>Introduction</title>
</head>
<body class="indexbody">
<div class="indexwrapper">
<div id="introduction">
<div class="btn">
<a href="test.html" >link</a>
</div>
</div>
</div>
</body>
</html>
Firebugの結果は何ですか?あなたはUI値がクラス属性に設定されるのを見ますか?これまでに何を試しましたか?トム・クルーズの有名な言葉では、「助けてください」と言います。 – jmort253
Firefox:class = "ui-button ui-widget ui-state-default ui-corner-all ui-button-text-only" Chrome:class = "ui-button ui-widget ui-state-default ui-corner -all ui-button-text-only " 生成されたHTMLはFirefoxとChromeで同じです。 IEでは、ui- *クラスは適用されません。 –
Chromeでは(期待どおり)緑のボタンが表示されます。 FirefoxとIEではリンクがあります。 –