发布网友 发布时间:2022-05-29 14:27
共2个回答
热心网友 时间:2023-10-21 08:01
<!doctype html>热心网友 时间:2023-10-21 08:02
<!doctype html>
<head>
<meta charset="UTF-8">
<title>使用jquery的attr把style去除</title>
<script type="text/javascript" src="http://www.ikqw.org/public/js/jquery-1.10.2.min.js?version=20170121"></script>
<script type="text/javascript">
$(document).ready(function(e) {
$(".conter_img li img").attr("style","");
});
</script>
</head>
<body>
<div class="conter_img">
<li style="text-align:center;color: #0000ff;font-size:12px;">
<img alt="" src="/uploads/allimg/161214/5-161214102HKG.jpg" style="width: 500px; height: 399px;" /></li></div>
</body>
</html>