除了Safari之外,jQuery和CSS动画的网站无处不在

时间:2017-07-29 09:28:17

标签: jquery html css css3 safari

我是jQuery的新手,下面链接中的网站适用于FF,Chrome和Opera,但不适用于Safari。

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Reverse Records - Klick me</title>



      <link rel="stylesheet" href="css/style.css">


</head>

<body>
  <div class='selector'>
  <ul>
    <li>
      <input id='1' type='checkbox'>
      <label for='1'>Option 1</label>
    </li>
    <li>
      <input id='2' type='checkbox'>
      <label for='2'>Option 2</label>
    </li>
    <li>
      <input id='3' type='checkbox'>
      <label for='3'>Option 3</label>
    </li>
    <li>
      <input id='4' type='checkbox'>
      <label for='4'>Option 4</label>
    </li>
  </ul>
  <div class="button1"></div>
</div>
  <script src='http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script>
  <script src="js/index.js"></script>


</body>

https://jsfiddle.net/dceh27we/#&togetherjs=jM21DCBopb

它怎么能在那里工作?我忘记了什么吗?

1 个答案:

答案 0 :(得分:0)

也许,
检查Safari浏览器支持的css属性

例如,

class Widget { // Built in class can't be modified public: bool draw(); }; class Button : public Widget { // Built in class can't be modified // Not able to put virtual inheritance for Widget Class }; class MyOwnSpecialWidget : public Widget { // Some special treatment for non container widgets }; class CustomButton : public Button, public MyOwnSpecialWidget { // So here the copy of Widget is coming form both Button // and MyOwnSpecialWidget class. };

这些用于不同浏览器的命名。