
私のウェブサイトから div を削除するのを手伝っていただけますか。以下に参考資料を示します。
<div style="text-align: center; font-size: smaller; clear: both;">Powered by <a href="http://www.joomultra.com" target="_blank" rel="follow">JU Contact</a></div>
この div を削除する方法はありますか?
答え1
答え2
これを行うには jQuery を使用できます。
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN">
<html>
<head>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<script>
$(document).ready(function () {
$('div').css('display', function () {
if ($(this).css('clear') == 'both')
return 'none'
});
});
</script>
<title></title>
</head>
<body>
</body>
</html>