Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/codeigniter/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
使用css设置jquery旋转器的样式_Jquery_Css_Rotator - Fatal编程技术网

使用css设置jquery旋转器的样式

使用css设置jquery旋转器的样式,jquery,css,rotator,Jquery,Css,Rotator,我在设置jquery图像旋转器的样式时遇到问题。我对网络还是相当陌生的。我有两种显示器尺寸的旋转器,但我不能让它在320宽的屏幕上工作。它似乎与.mycaption有关,因为我在滑块顶部有一个奇怪的条 这是html <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html lang=

我在设置jquery图像旋转器的样式时遇到问题。我对网络还是相当陌生的。我有两种显示器尺寸的旋转器,但我不能让它在320宽的屏幕上工作。它似乎与.mycaption有关,因为我在滑块顶部有一个奇怪的条

这是html

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html lang="en-US" xmlns="http://www.w3.org/1999/xhtml" xmlns:og="http://opengraphprotocol.org/schema/">
    <head>
        <title>Design • Fabrication • Installation, Dallas | DSArts</title>
        <script type="text/javascript" src="jquery-2.1.1.min.js"></script>
        <script type="text/javascript" src="jquery.cycle.all.js"></script>
        <script type="text/javascript">
            $('#slider').cycle({

                fx: 'fade',
                timeout: 4000,
                next: '#next',
                prev: '#prev',
                pause: 1


            });

            $('#next, #prev').hover(
                function() {
                    $('#slider').cycle('pause');
                },
                function() {
                    $('#slider').cycle('resume');
                });
        </script>

        <link href="main.css" rel="stylesheet" type="text/css" media="all">
        <link href="small.css" rel="stylesheet" type="text/css" media="only screen and (max-width: 1056px)">
        <link href="mobile.css" rel="stylesheet" type="text/css" media="only screen and (min-device-width: 320px) and (max-device-width: 480px)">
    </head>
    <body bgcolor="#3097B9">
        <div class="page-wrap">
            <header>
                <div id="headerwrap">
                    <div>
                        <a href="index.html">
                            <img src="images/logo.jpg" alt="DS Arts logo" width="529" height="143" class="headerimage" />
                        </a>
                    </div>
                    <img src="images/Factory.png" alt="" width="400" height="136" id="buildingimg" />
                </div>
            </header>
            <div id="navwrap">
                <nav id="navbar">
                    <ul>
                        <p><a href="index.html">Home</a>
                        </p>
                        <p><a href="design.html">Design</a>
                        </p>
                        <p><a href="solutions.html">Solutions</a>
                        </p>
                        <p><a href="fabrication.html">Fabrication</a>
                        </p>
                        <p><a href="installation.html">Installation</a>
                        </p>
                        <p><a href="portfolio.html">Portfolio</a>
                        </p>
                        <p><a href="clientlist.html">Client List</a>
                        </p>
                        <p><a href="contact.html" id="16">Contact</a>
                        </p>
                    </ul>
                </nav>
            </div>
            <div id="wrapper">
                <div id="paragraph">
                    <h1><a href="design.html">Design</a>, Display,<br> <a href="fabrication.html">Fabrication</a>,<br> <a href="installation.html">Installation</a>...</h1>
                    <p class="p">DS ARTS creates amazing environments that motivate, impress and make a statement. Through our design, production and installation expertise, we work with a wide spectrum of clients to create trade shows, special events, showrooms, restaurant and retail
                        interiors, sales and marketing centers, specialized decor and entertainment venues. Of course, everything is created with each client’s unique needs in mind. Take a look we think you’ll like what you see.</p>
                    <div class="icon">
                        <img src="images/icon_home.png" alt="" />
                    </div>
                </div>
                <div class="rotator">
                    <div id="hero">
                        <div id="next">
                            <img src="images/right.png" width="50" height="50" alt="" />
                        </div>
                        <div id="prev">
                            <img src="images/left.png" width="50" height="50" alt="" />
                        </div>
                        <div id="slider">
                            <div id="slidewrap">
                                <img src="images/conan.jpg" alt="scenic stage" />
                                <span class="myCaption">CONAN O'BRIEN SHOW - MAJESTIC THEATER - Dallas</span>
                            </div>
                            <div id="slidewrap">
                                <img src="images/mickey.jpg" alt="display graphics" />
                                <span class="myCaption">MATTEL - New York Toy Fair</span>
                            </div>
                            <div id="slidewrap">
                                <img src="images/Lenox square.jpg" alt="stryrofoam sculpture" />
                                <span class="myCaption">LENOX SQUARE MALL - Atlanta</span>
                            </div>
                            <div id="slidewrap">
                                <img src="images/fisher.jpg" alt="Fisher Price" />
                                <span class="myCaption">FISHER PRICE JPMA SHOW - Dallas</span>
                            </div>
                            <div id="slidewrap">
                                <img src="images/DSC03399.JPG" alt="lighting" />
                                <span class="myCaption">VICTORY PARK DISCOVERY CENTER - Dallas</span>
                            </div>
                            <div id="slidewrap">
                                <img src="images/megazord.jpg" alt="styrofoam sculpture" />
                                <span class="myCaption">BANDAI - New York Toy Fair</span>
                            </div>
                            <div id="slidewrap">
                                <img src="images/BIRD CAGES.jpg" alt="Cowboys Stadium" />
                                <span class="myCaption">COWBOYS STADIUM - Arlington</span>
                            </div>
                            <div id="slidewrap">
                                <img src="images/benten.jpg" alt="toy fair" />
                                <span class="myCaption">BANDAI - New York Toy Fair</span>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>

        <footer class="site-footer">
            <div id="footwrap">
                <div itemscope="itemscope" itemtype="http://data-vocabulary.org/organization">
                    <span itemprop="name">DS Arts</span>&nbsp;&nbsp;&nbsp;&nbsp;
                    <span itemprop="street-address">1111 South Lamar Street</span>
                    <span itemprop="locality">Dallas</span>, <span itemprop="region">TX</span>
                    <span itemprop="postal-code">75215</span>
                    <span itemprop="country-name">USA</span>&nbsp;&nbsp;&nbsp;&nbsp;
                    <p>Phone:&nbsp;<span itemprop="telephone">214-565-7858</span> &nbsp;&nbsp;&nbsp;&nbsp;
                    <p>Fax:&nbsp;<span itemprop="fax">214-565-7859</span>
                    </p>&nbsp;&nbsp;&nbsp;&nbsp;
                    <a href="mailto:dkolbo@dsarts.com" itemprop="email"> dkolbo@dsarts.com</a>
                </div>
            </div>
        </footer>
    </body>
</html>
我一直在努力解决这个问题有一段时间了。就像我说的,我在自学,有时我不知道从哪里开始。我真的很感激能得到的任何帮助


这里有一些代码:

我发现很难解决您的问题

根据我的计算结果,我假设你的图像在这个(320px)更小的设备上的大小奇怪

#slidewrap img {
  width:100%;
  height:auto;
}

更改图像以填充父div可能会有所帮助。尽管你的提琴对诊断没有任何帮助。

在这里,一个JSFIDLE或plunker可能会有很大帮助。不过,感谢您发布代码。太多人忽视了发布代码。我不确定我是否正确使用了JSFIDLE。我将其修复为指向cycle插件的CDN。看起来很好用。在您第一次发布时,我做了一个JSFIDLE,它也起了作用。必须为我们复制你的问题:p
#slidewrap img {
  width:100%;
  height:auto;
}